UCMA 4, Lync in Office365, UserEndpoint failure

Just started with UCMA development and going over the samples. I am using our company's Lync in Office365.
In the AVCall sample in establishing UserEndpoint I am getting Microsoft.Rtc.Signaling.TlsFailureException "Unknown error (0x80131500)". In the sample (in UCMASampleHelper.cs)  a Lync Server FQDN is required for UserEndpointSettings.
I am setting it to "sipdir.online.lync.com". Is it the coerrect FQDN of Lync in Office365?
If it is a correct FQDN - does the Win desktop that runs the sample need to have a specific valid certificate for Tls to succeed?Thanks,
David

As far as I know, the Lync Online systems don't support you writing UCMA applications that connect to those servers.
Oscar Newkerk
Oscarnew Consulting

Similar Messages

  • Windows Server 2008 (TS) and Lync Web App installation failure

    Hey folks,
    I've run into a little big problem due the Lync Web App installation via mstsc on a stand alone Terminal Server 2008 SP2 64 Bit. When I tried to install the Lync Web App Plugin via
    mstsc and standard user I get the message:
    "The system administrator has
    set up a policy that the installation
    prevents"
    Till that it's just fine.
    The next thing I did is to disable the UAC and DEP, but same problem as above. I also tried to extract the install EXE for the MSI packages to allow the installation. But did not work.
    After I searched the internet for an answer relating to this problem I've had to create or change a RegEdit entry. So I switched to the registry to:
    HKEY_Local_Machine\Software\Policies\Microsoft\Windows\Installer
    and created a DWORD entry DisableMSI and set it to 0. Then I tried the installation of Lync Web App Plugin via
    mstsc and standard user again and this message appeared:
    "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755"
    Now the curious thing is, that when I am logged on locally, the standard user is able to install the Lync Web App Plugin. And it works fine. After the installation is complete I can switch to mstsc again and it works.
    The only thing what doesn't work is to install Lync Web App Plugin via mstsc into the user profile.
    Any suggestions?

    Before you install the application, change your user mode to installation mode.
    You can run the following command with Prompt Command:
    Change user /install
    After the application is installed, change back to execution mode, you can do so by running the following command:
    Change User /Execute
    Lisa Zheng
    TechNet Community Support

  • Lync 2013 Client install failure

    Hi
    We're having trouble installing the Lync 2013 standalone client via SCCM on a couple of PCs.  It is installing with no problem on most PCs.  
    However, on some PCs, it installs and when you launch it you get the message...
    "Microsoft Lync has stopped working
    A problem caused the program to stop working correctly.  Please close the program."
    The only option is close the program..
    The event log shows an error..
    Event ID 1000
    "Faulting application name: lync.exe, version: 15.0.4569.1503, time stamp: 0x52b0af33
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x00000000
    Faulting process id: 0x112c
    Faulting application start time: 0x01cf9f6494efc8b5
    Faulting application path: C:\Program Files (x86)\Microsoft Office\Office15\lync.exe
    Faulting module path: unknown"
    We have completely uninstalled all traces of Office 2013 and trying reinstalling the software manually but the same thing happens.  We even tried installing Lync as part of the Office 2013 install and the same thing happens (word etc does load ok, its
    just Lync that fails)
    Has anyone else had this happen?  Any suggestions? 

    As this issue only happens on some PCs, so I think this problem is relate with PC.
    Please check if there is Bluetooth utility installed on these PCs. If yes, try to remove it.
    Update the drivers on these PCs to the latest version.
    Lisa Zheng
    TechNet Community Support

  • No users are being migrated to the Unified Contact Store (UCS) for Lync 2013 - Exchange 2013

    I'm having difficulty getting the unified contact store to work on a migrated Lync/Exchange environment. Both servers have been upgraded to 2013 CU2, and almost everything appears to be working properly...except UCS.
    By default the global CsUserServicesPolicy has UcsAllowed set to True. In that mode, none of the Lync users were being migrated to UCS, so I set the global policy to False and created a new Policy called "AllowUCS" and set UcsAllowed to True. I then
    assigned that policy to myself and a couple other test accounts. Still, my contacts are not being migrated to the UCS after logging in with Lync 2013.
    Other Lync/Exchange integration features are working properly. I have set up OAuth, and it tests successfully, and Lync integration with OWA is working successfully, so I know at least some communication is happening properly between the servers.
    Here is what I'm getting when I run some diagnostics from the Lync server:
    PS C:\Users\administrator> get-csuser jdoe |FL Name,UserServicesPolicy
    Name               : Jon Doe
    UserServicesPolicy: AllowUCS
    PS C:\Users\administrator> Get-CsUserServicesPolicy |FL
    Identity  : Global
    UcsAllowed : False
    Identity   : Tag:AllowUCS
    UcsAllowed : True
    PS C:\Users\administrator> Debug-CsUnifiedContactStore -Identity [email protected] |FL
    UcsMigrationAttemptCount : 0
    LastUcsMigrationAttempt  :
    SipUri                   : [email protected]
    UcsMode                  : Disabled
    PS C:\Users\administrator> Debug-CsUnifiedContactStore -PoolFqdn lync.domain.org
    FrontEnd          : lbclync.domain.org
    UcsDisabledCount  : 141
    UcsAllowedCount   : 0
    UcsMigratingCount : 0
    UcsMigratedCount  : 0
    FailedUserData    :
    PS C:\Users\administrator> Test-CsUnifiedContactStore -UserSipAddr
    ess [email protected] -TargetFqdn lync.domain.org
    Target Fqdn   :lync.domain.org
    Result        : Failure
    Latency       : 00:00:00.0654970
    Error Message : User has not been migrated. Verify that the user has a mailbox
                    in Exchange and that the user has been migrated.
    Diagnosis     :
    Anyone know what I am missing?

    Hi,
    Please make sure the user has been provisioned with an Exchange 2013 mailbox and has signed into the mailbox at least once.
    If the user logs in with a Lync 2010 or earlier client, or if the user is not connected to an Exchange 2013 server, the user services policy is ignored and the user's contacts remain in Lync Server.
    Please also check the registry key on the client computer:
    HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Lync\<SIP URL>\UCS
    If the user's contacts are stored in Exchange 2013, this key contains a value of InUCSMode with a value of 2165.
    Kent Huang
    TechNet Community Support

  • Microsoft Exchange Server 2003 and Windows 8 Compatibility

    Is there a fix or workaround for accessing email via Outlook 2013 (Windows 8) when your company uses Microsoft exchange server 2003 and has not plans on upgrading it any time soon. I am a remote employee so I am the only one that has this problem in the
    company. I can access email through an owa account but it's a pain. I tried to set up a rule to have all incoming mail forwarded to my gmail account in Outlook 2013, but that did not work. Any other ideas?

    If server has enabled ActiveSync you can use Windows 8 Mail Client - works almost like Outlook.
    AFAIR Outlook 2013 can't work with Exchange 2003.
    Regards, Konrad Sagala, MCT, MCSE+M, MCITP: Exchange 2007/2010, Lync 2010, Office365, Windows 2008, Virtualization

  • Exchange Server 2003 and OWA: Missing search box in contacts

    Don't know what has happened here, we got a new server administrator.
    Using OWA, connecting to our Server 2003 at the office.  He has put the Contacts in a Public Folder that we drill down into to access.  When accessing from home via OWA, and having drilled down to that public folder where the contacts reside, there
    isn't a search box.  In other words, if I wanted to search for a contact via OWS, I can't.  I have to sift through page by page, hoping I come upon the contact.
    Any help here?  The new administrator seems to push this off on the guy that just left.  Oy vey….

    If server has enabled ActiveSync you can use Windows 8 Mail Client - works almost like Outlook.
    AFAIR Outlook 2013 can't work with Exchange 2003.
    Regards, Konrad Sagala, MCT, MCSE+M, MCITP: Exchange 2007/2010, Lync 2010, Office365, Windows 2008, Virtualization

  • Web-Ticket service returns: (500) Internal Server Error

    I get Internal server errors when I try to get something from the server. This is what I get from the "Test-CSAddressBookService":
    PS C:\Users\testuser> Test-CsAddressBookService -TargetFqdn wak-lync.testdomain.com -UserCredential testdomain\testuser -UserSipAddress "sip:[email protected]" -verbose
    VERBOSE: Workflow Instance Id 42f8f454-5d02-48b2-8b8e-4ecaf6dba5e0, started.
    Connecting to web service : https://wak-lync.testdomain.com:443/WebTicket/WebTicketService.svc
    Using IWA authentication
    Successfully created connection proxy and website bindings
    Requesting new web ticket
    Sending Web-Ticket Request: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</Action>
    </s:Header>
    <s:Body>
    <RequestSecurityToken xmlns="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
    <TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</TokenType>
    <RequestType>http://schemas.xmlsoap.org/ws/2005/02/trust/Issue</RequestType>
    <AppliesTo xmlns="http://schemas.xmlsoap.org/ws/2004/09/policy">
    <EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
    <Address>https://wak-lync.testdomain.com/WebTicket/WebTicketService.svc</Address>
    </EndpointReference>
    </AppliesTo>
    <Entropy>
    <BinarySecret>BMLGyAK9H+6w1rrdFY+I2oSy39FMyfy86/WwJoTK0nE=</BinarySecret>
    </Entropy>
    <KeyType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey</KeyType>
    </RequestSecurityToken>
    </s:Body>
    </s:Envelope>
    ERROR communicating with GetWebTicket() service System.ServiceModel.ProtocolException: The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were:
    '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>500 - Internal server error.</title>
    <style type="text/css">
    <!--
    body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
    fieldset{padding:0 15px 10px 15px;}
    h1{font-size:2.4em;margin:0;color:#FFF;}
    h2{font-size:1.7em;margin:0;color:#CC0000;}
    h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
    #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;background-color:#555555;}
    #content{margin:0 0 0 2%;position:relative;}
    .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
    -->
    </style>
    </head>
    <body>
    <div id="header"><h1>Server Error</h1></div>
    <div id="content">
    <div class="content-container"><fieldset>
    '. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
    at System.Net.HttpWebRequest.GetResponse()
    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
    --- End of inner exception stack trace ---
    Server stack trace:
    at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)
    at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
    at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
    at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at Microsoft.Rtc.Internal.WebTicketService.IWebTicketService.IssueToken(Message request)
    at Microsoft.Rtc.SyntheticTransactions.WebServicesHelper.GetWebTicket()
    TargetUri : https://wak-lync.testdomain.com:443/abs/handler
    TargetFqdn : wak-lync.testdomain.com
    Result : Failure
    Latency : 00:00:00
    Error : ERROR - No response received for Web-Ticket service.
    Inner Exception:The content type text/html of the response message
    does not match the content type of the binding (text/xml; charset
    =utf-8). If using a custom encoder, be sure that the IsContentType
    Supported method is implemented properly. The first 1024 bytes of
    the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 S
    trict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-88
    59-1"/>
    <title>500 - Internal server error.</title>
    <style type="text/css">
    <!--
    body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica
    , sans-serif;background:#EEEEEE;}
    fieldset{padding:0 15px 10px 15px;}
    h1{font-size:2.4em;margin:0;color:#FFF;}
    h2{font-size:1.7em;margin:0;color:#CC0000;}
    h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
    #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family
    :"trebuchet MS", Verdana, sans-serif;color:#FFF;
    background-color:#555555;}
    #content{margin:0 0 0 2%;position:relative;}
    .content-container{background:#FFF;width:96%;margin-top:8px;paddin
    g:10px;position:relative;}
    -->
    </style>
    </head>
    <body>
    <div id="header"><h1>Server Error</h1></div>
    <div id="content">
    <div class="content-container"><fieldset>
    Inner Exception:The remote server returned an error: (500) Interna
    l Server Error.
    Diagnosis :
    VERBOSE: 'Register' activity started.
    Sending Registration request:
    Target Fqdn = wak-lync.testdomain.com
    User Sip Address = sip:[email protected]
    Registrar Port = No Port is provided..
    Auth Type 'IWA' is selected.
    Registration Request hit against sip/WAK-LYNC.testdomain.com
    'Register' activity completed in '0.3157031' secs.
    'ReadUriFromInBandProvisioningDataActivity' activity started.
    'ReadUriFromInBandProvisioningDataActivity' activity completed in '0.0002991' secs.
    'UnRegisterActivity' activity started.
    'UnRegisterActivity' activity completed in '0.0102002' secs.
    'STActivity' activity started.
    Trying to get web ticket.
    Web Service url :
    https://wak-lync.testdomain.com:443/WebTicket/WebTicketService.svc
    Using NTLM\Kerb auth.
    Could not get a web ticket
    CHECK:
    - Web service url is valid and the web services are functional
    - If using PhoneNo\PIN to authenticate, make sure they match the user uri
    - If using NTLM\Kerberos auth, make sure you provided valid credentials
    An exception 'ERROR - No response received for Web-Ticket service.' occurred
    during Workflow Microsoft.Rtc.SyntheticTransactions.Workflows.STAbsWorkflow
    execution.
    Exception Call Stack: at
    Microsoft.Rtc.SyntheticTransactions.WebServicesHelper.GetWebTicket()
    at
    Microsoft.Rtc.SyntheticTransactions.Activities.GetWebTicketActivity.InternalExe
    cute(ActivityExecutionContext executionContext)
    at
    Microsoft.Rtc.SyntheticTransactions.Activities.STActivity.Execute(ActivityExecu
    tionContext executionContext)
    at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity,
    ActivityExecutionContext executionContext)
    at System.Workflow.ComponentModel.CompositeActivityExecutor`1.Execute(T
    activity, ActivityExecutionContext executionContext)
    at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity
    activity, ActivityExecutionContext executionContext)
    at
    System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRunti
    me workflowCoreRuntime)
    at System.Workflow.Runtime.Scheduler.Run()
    Server stack trace:
    at
    System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(
    HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory,
    WebException responseException, ChannelBinding channelBinding)
    at
    System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelR
    equest.WaitForReply(TimeSpan timeout)
    at System.ServiceModel.Channels.RequestChannel.Request(Message message,
    TimeSpan timeout)
    at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message
    message, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean
    oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan
    timeout)
    at
    System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessa
    ge methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage
    message)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
    reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
    msgData, Int32 type)
    at
    Microsoft.Rtc.Internal.WebTicketService.IWebTicketService.IssueToken(Message
    request)
    at Microsoft.Rtc.SyntheticTransactions.WebServicesHelper.GetWebTicket()
    VERBOSE: Workflow Instance Id 42f8f454-5d02-48b2-8b8e-4ecaf6dba5e0, completed.
    VERBOSE: Workflow Execution Time (sec): 0.481
    When I look at the server I see the following in the log:
    2012-07-10 15:02:09 10.128.1.16 POST /WebTicket/WebTicketService.svc - 443 TESTDOMAIN\g01 10.10.20.115 OC/4.0.7577.4098+(Microsoft+Lync+2010) 500 0 0 218
    2012-07-10 15:02:09 10.128.1.16 POST /groupexpansion/service.svc - 443 TESTDOMAIN\g01 10.10.20.115 OC/4.0.7577.4098+(Microsoft+Lync+2010) 500 0 0 0
    2012-07-10 15:02:12 10.128.1.16 POST /WebTicket/WebTicketService.svc/cert - 443 TESTDOMAIN\e01 10.10.30.105 OC/4.0.7577.0+(Microsoft+Lync+2010) 500 0 0 15
    2012-07-10 15:02:12 10.128.1.16 POST /WebTicket/WebTicketService.svc - 443 TESTDOMAIN\e01 10.10.30.105 OC/4.0.7577.0+(Microsoft+Lync+2010) 500 0 0 0
    2012-07-10 15:02:15 10.128.1.16 POST /WebTicket/WebTicketService.svc - 443 TESTDOMAIN\k01 10.10.20.59 OC/4.0.7577.4098+(Microsoft+Lync+2010) 500 0 0 46
    2012-07-10 15:02:15 10.128.1.16 POST /groupexpansion/service.svc - 443 TESTDOMAIN\k01 10.10.20.59 OC/4.0.7577.4098+(Microsoft+Lync+2010) 500 0 0 202
    2012-07-10 15:02:18 10.128.1.16 POST /WebTicket/WebTicketService.svc - 443 TESTDOMAIN\g02 10.10.11.53 OC/4.0.7577.0+(Microsoft+Lync+2010) 500 0 0 31
    2012-07-10 15:02:18 10.128.1.16 POST /groupexpansion/service.svc - 443 TESTDOMAIN\g02 10.10.11.53 OC/4.0.7577.0+(Microsoft+Lync+2010) 500 0 0 202
    2012-07-10 15:02:18 10.128.1.16 POST /WebTicket/WebTicketService.svc - 443 TESTDOMAIN\k01 10.10.20.59 OC/4.0.7577.4098+(Microsoft+Lync+2010) 500 0 0 46
    2012-07-10 15:02:18 10.128.1.16 POST /groupexpansion/service.svc - 443 TESTDOMAIN\k01 10.10.20.59 OC/4.0.7577.4098+(Microsoft+Lync+2010) 500 0 0 218
    So I see it is not only a address book issue, though it is the first visible hint you get about it. I also get the Password request window for "Retrieving Response Groups" after the log in.
    I looked at similar issues, but what I found was mainly Kerberos issues, but that is not the case here, the user is able to access the folders.

    Hi,
    Try the way the following thread mentioned:
    http://social.technet.microsoft.com/Forums/en-US/ocsaddressbook/thread/83106a88-7b38-49cc-b62d-52867a99bfd1
    Regards,
    Lisa

  • Message Reports - Encrypted Messages

    Hi,
    Is it possible to run a report as to how many users have been using IRM i.e. we would like to see how widely used it is and who is making most use of it.
    Thanks
    Celtic

    did you try AD RMS console reports?
    Regards, Konrad Sagala, MCT, MCSE+M, MCITP: Exchange 2007/2010, Lync 2010, Office365, Windows 2008, Virtualization

  • Microsoft Exchange Server 2003 and McAfee Email Gateway appliance

    I have been connecting to my company's exchange server without incident until the IT department installed a McAfee Email Gateway. Now I cannot connect and the IT department tells me there is nothing they can do. Has anyone encountered this issue?

    If server has enabled ActiveSync you can use Windows 8 Mail Client - works almost like Outlook.
    AFAIR Outlook 2013 can't work with Exchange 2003.
    Regards, Konrad Sagala, MCT, MCSE+M, MCITP: Exchange 2007/2010, Lync 2010, Office365, Windows 2008, Virtualization

  • Accessing Exchange Server Property

    Hi:
    I have a VB Script program that access Exchange server. I need to migrate it to Java. The LDAP connection is working. But I can not retrieve the msExchMessageJournalRecipient property. Could you help?
    Thank in advance.
    VB Script
    Set oConnection = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")
    wscript.echo "Journaling Flag Sample Start -- " & Date & " -- " & Time
    oConnection.Provider = "ADsDSOObject"  'The ADSI OLE-DB provider
    oConnection.Open "ADs Provider", _
         "USERNAME", "PASSWORD"
    set objCommand =createObject("ADODB.Command")
    objCommand.ActiveConnection = oConnection
    objCommand.Properties("Page Size") = 900
    strQuery = "<LDAP://SERVERNAME/" & _
         "CN=Administrative Groups,CN=COMPANY_NAME,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=WINROOT,DC=COMAPANY_NAME,DC=com>;" & _
         "(objectClass=msExchPrivateMDB);" & _
         "ADsPath,msExchMessageJournalRecipient" & _
         ";subtree"
    objCommand.CommandText = strQuery
    Set rs=objCommand.Execute
    adp = rs("ADsPath").value
    jrnl = rs("msExchMessageJournalRecipient").valueJava code
         public static void main(String[] args) {
              NamingEnumeration results = null;
              DirContext ctx = null;
              try {
                   Hashtable env = new Hashtable();
                   env
                             .put(Context.SECURITY_PRINCIPAL, "USERNAME");
                   env.put(Context.SECURITY_CREDENTIALS, "PASSWORD");
                   DirContext init = new InitialDirContext(env);
                   ctx = (DirContext) init
                             .lookup("ldap://SERVER");
                   SearchControls controls = new SearchControls();
                   controls.setSearchScope(SearchControls.SUBTREE_SCOPE);
                   results = ctx
                             .search(
                                       "CN=Administrative Groups,CN=Company,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=WINROOT,DC=Company,DC=com",
                                       "(objectClass=msExchPrivateMDB)", controls);
                   if (results.hasMore()) {
                        SearchResult sres = (SearchResult) results.next();
                        Attributes attributes = sres.getAttributes();
                        NamingEnumeration attrEnum = attributes.getAll();
                        while (attrEnum.hasMore()) {
                             System.out.println("Attribute: "attrEnum.next().toString());
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   if (results != null) {
                        try {
                             results.close();
                        } catch (Exception e) {
                             e.printStackTrace();
                   if (ctx != null) {
                        try {
                             ctx.close();
                        } catch (Exception e) {
                             e.printStackTrace();
         }

    Did you prepare Windows 7 for cooperating with Exchange 2013?
    On Exchange 2013 prereq site is procedurę:
    Install the following software in the order shown:
    Microsoft .NET Framework 4.5
    The version of Windows Management Framework that corresponds to the version of Exchange 2013 you're installing.
    Exchange 2013 CU3   Windows Management Framework 3.0
    Exchange 2013 SP1 or later   Windows Management Framework 4.0
    Knowledge Base article KB974405 (Windows Identity Foundation)
    Regards, Konrad Sagala, MCT, MCSE+M, MCITP: Exchange 2007/2010, Lync 2010, Office365, Windows 2008, Virtualization

  • UCMA 3.0: UserEndPoint BeginEstablish exception: Microsoft.Rtc.Signaling.ConnectionFailureException

    Hello,
      I'm using UCMA 3.0 to write a web service that creates a userEndpoint and attempts to register it via BeginEstablish().  Before this gets called, a CollaborationPlatform object is created and started, successfully.  But when I try to establish
    the userEndpoint, I get the following error:
    Endpoint  failed to establish: Microsoft.Rtc.Signaling.ConnectionFailureException:Unable to establish a connection. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a
    period of time, or established connection failed because connected host has failed to respond 172.30.228.57:5061
       at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
       at Microsoft.Rtc.Internal.Sip.TcpTransport.OnConnected(Object arg)
    --- End of inner exception stack trace ---
       at Microsoft.Rtc.Signaling.SipAsyncResult`1.ThrowIfFailed()
       at Microsoft.Rtc.Signaling.Helper.EndAsyncOperation[T](Object owner, IAsyncResult result)
       at Microsoft.Rtc.Collaboration.LocalEndpoint.EndEstablish(IAsyncResult result)
       at appIcLync.IcLyncMgr.EndEndpointEstablish(IAsyncResult ar) in C:\Users\administrator\Documents\Visual Studio 2010\Projects\appIcLync\appIcLync\IcLyncMgr.cs:line 187
    Detected at System.Environment.get_StackTrace()
       at Microsoft.Rtc.Signaling.ConnectionFailureException..ctor(String message, Exception innerException)
       at Microsoft.Rtc.Signaling.ExceptionUtilities.TryMapS4Exception(Exception s4Exception, SecurityAssociationContext securityContext, Boolean isSipEndpoint, String traceId, Object parentObject, Object childObject, RealTimeException& ex)
       at Microsoft.Rtc.Signaling.SipTransactionAsyncResult`1.ConnectionConnectCompleted(IAsyncResult result)
       at Microsoft.Rtc.Signaling.SipAsyncResult2`1.MakeCallback()
       at Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex, Boolean synchronousCompletion)
       at Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex)
       at Microsoft.Rtc.Signaling.RealTimeConnection.CompletePendingConnects(IEnumerable`1 results, RealTimeException exception)
       at Microsoft.Rtc.Signaling.RealTimeConnection.<.ctor>b__0(SipConnection sender, Object reason)
       at Microsoft.Rtc.Internal.Sip.SipConnection.DisconnectedEventHandler.Invoke(SipConnection sender, Object reason)
       at Microsoft.Rtc.Internal.Sip.SipConnection.FireDisconnectedEvent(Object reason)
       at Microsoft.Rtc.Internal.Sip.SingleThreadedDispatcherQueue.DispatcherCallback(Object queue)
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

    Ok, I followed the procedures for 'General Application Activation' at the site Michael recommended.   I'm still getting the same error:
    Endpoint  failed to establish: Microsoft.Rtc.Signaling.ConnectionFailureException:Unable to establish a connection. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period
    of time, or established connection failed because connected host has failed to respond 172.30.228.57:5061
       at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
       at Microsoft.Rtc.Internal.Sip.TcpTransport.OnConnected(Object arg)
    The only place where I deviated was activating a port.  The example uses port 6000.  I entered port 5061, only
    because the error I was getting specified that port.  Is this correct?
    I can see the application pool that I created in the Lync control panel, but its status is 'N/A' and has a red X under the Replication column.  My application is also visable
    under 'Trusted Application'
    Any other ideas?

  • Lync Edge DNS Load Balancing call failure to PBX

    Hi, I have an issue with a Lync 2013 Implementation involving Edge Servers and PBX calls.
    We are trying to configure 2 Edge Servers using DNS Load Balancing. We configured both servers on the topology builder, assign the correct IPs, have 6 Public IPs, 3 for each Edge. Configure NATs behind an ASA firewall, then configured the name of the edge
    pool and added each Edge IP for that name on the internal DNS, also checked every port and route to make sure everything works.
    All the tests related directly to Lync works, IM, Presence, Audio and Video Conferencing, Desktop Sharing, etc. However, when testing out calls from the PBX System to an Lync External client through the Edge Servers, the call rings, but never connects.
    Inside the network, everything works fine, even when using only 1 Edge Server and removing the other one from the topology the call connects to the external user from the internal PBX phone. I even tried it out using one Edge first and then the other to
    make sure all ports were open and everything works fine using either one, but only one at the time, not both.
    The issue is only present via peer to peer call, if I first make a meet now and invite the external client, the call works.
    Am I missing something with the implementation of DNS Load Balancing. 
    The A Host records on the public DNS have 2 IPs for each record related to Lync Edge Services, example:
    access.domain.com 200.10.10.11
    200.10.10.12
    audiovideo.domain.com 200.10.10.13
    200.10.10.14
    webconf.domain.com 200.10.10.15
    200.10.10.16
    Each IP is NAT'd to their respective service in its respective Edge Server. When testing I check that the DNS records are correctly responding from outside.
    Any ideas on this particular issue?
    Thanks once again!
    Eduardo Rojas

    Hi Edurojma,
    The fact that the call rings, and then drops on answering indicates this is most likely an AV routing issue.
    You advised that if you create a conference first through meet now, and then invite the participant, that the call works. But this doesn't work peer to peer.
    Can I please ask that you check your static routes on your Edge server. The above sounds like the Edge has a route to your Front End server (which would be hosting the conference, hence the success), but doesn't have a route to the subnet that the client
    is residing on (hence the failure).
    Your Edge server needs to have routes to every subnet that is in use on your internal network.
    I might be going down the wrong track, but this is quite a common problem for implementations where specific routes have been defined rather than catch all routes for every possible private subnet.
    Check your edge can route to that phones subnet.
    Kind regards
    Ben
    Blog:www.gecko-studio.co.uk/ 
    Twitter:
      LinkedIn:
      Facebook:
    Note: If you find a post informative, please mark it so using the arrow to the left. If it answers a question you've asked, please mark the thread as answered to aid others when they're looking for solutions to similar problems
    or queries.

  • What is known about UCMA support in 'Skype for Business', the next generation of Lync Server?

    Microsoft has announced that the next version of Lync will be "Skype for Business".  In the first half of 2015, the next version of Lync will become Skype for Business with a new client experience, new server release, and updates to the service
    in Office 365.
    http://blogs.skype.com/2014/11/11/introducing-skype-for-business/
    What is known about support for UCMA and other Lync SDKs in the new version that is expected to be released in less than six months?
    UCFin

    There is now publicly available information that all the Lync SDKs will be supported in Skype for Business. Specifically, there will be support for:
    Unified Communications Managed API (UCMA)
    Lync Server SDK
    Lync Client Managed API (including UI Suppression)
    Unified Communication Web API (UCWA)
    You can read more on my blog post: here: http://blog.thoughtstuff.co.uk/2015/03/lync-development-apis-whats-supported-in-skype-for-business/
    -tom
    Tom Morgan Developing Lync

  • Large Number of Lync Conference Session Failures Every 3 Minutes

    I'm wondering if anyone has ever seen this issue before.  It's new to me.
    A client of mine is experiencing extremely high conferencing session failures in Lync.  Once looking into the conferences in question, it looks as though one specific users conferences are in question.  A conference session for this users Lync
    meetings are attempting to be joined EVERY 3 minutes, 24 Hours a day with a Response Code of 486 and a Diagnostic Code of 34007.  Here is a ScreenShot of 10 Minutes worth of these attempts:
    This user is not experiencing any problems in joining meetings on his own and he is the only user listed as having unexpected conference failures. 
    My thought was to restart the AV Conferencing Service or reboot the Front End Servers but wanted to run this past some other first. 
    Any thoughts?
    John K. Boslooper | Lync Technical Specialist | MCITP
    Project Leadership Associates
    2000 Town Center, Suite 1900, Southfield, MI 48075
    Phone: 312.448.2269 | Fax: 435.304.3335
    www.projectleadership.net

    UPDATE:
    It seems as though it was a hung up process with the AVCMU Agent on one of the Front-End servers.  A simple reboot over the weekend took care of the problem.
    John K. Boslooper | Lync Technical Specialist | Project Leadership Associates Phone: 312.448.2269 | www.projectleadership.net

  • Lync server Installation .failure code 1620

    Hello,
    I have downloaded a fresh copy of Lync server from web and received the following error during installation :
    Checking prerequisite MSSpeech_SR_es-ES_TELE...installing...failure code 1620
    Prerequisite installation failed: MSSpeech_SR_es-ES_TELE
    I have also downloaded the fresh copy of "MSSpeech_SR_es-ES_TELE" from microsoft website and replaced this file with the corrupted one to resolve the issue but it doesn't worked.
    Please help me, I am trying to install Lync server from a week ago and its failing everytime. Any help is much appreciated.

    Hi,
    The issue may also cause by the corrupt ISO download. Please download the Lync server ISO again.
    Please also try to copy the ISO to local workstation and setup.
    Here is a similar case may help you:
    http://www.proexchange.be/blogs/lync2013/archive/2012/08/04/lync-sever-2013-preview-installation-fails-with-error-code-1620.aspx
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

Maybe you are looking for