Error: LyncWidget service not starting

Apr 13, 2012 at 3:24 PM
Edited Apr 13, 2012 at 3:37 PM

Hi, we deployed a web service by following steps in the Instructions, however, we are stuck on this right now:

 

2012-04-04 22:28:45,973 [54] INFO  Lync.Widget.Service.Service [(null)] - LyncWidget service starting up2012-04-04 22:28:46,168 [52] ERROR Lync.Widget.Service.Presence.UcmaHelper [(null)] - Platform End startup threw an RealTimeException.Microsoft.Rtc.Collaboration.ProvisioningFailureException:One or more values in the configured settings are invalid or unusable. Check inner exception and logs for more details. ---> Microsoft.Rtc.Internal.ServerConfiguration.SettingsInitializationException: Application contacts OU not set. ---> Microsoft.Rtc.Management.ADConnect.ADOperationException: Active Directory error "-2147023570" occurred while searching for domain controllers in domain "IT-Partner.local": "Logon failure: unknown user name or bad password." ---> System.Security.Authentication.AuthenticationException: Logon failure: unknown user name or bad password.---> System.DirectoryServices.DirectoryServicesCOMException: Logon failure: unknown user name or bad password.
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)   at System.DirectoryServices.DirectoryEntry.Bind()   at System.DirectoryServices.DirectoryEntry.get_AdsObject()   at System.DirectoryServices.PropertyValueCollection.PopulateList()   at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)   at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)   at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)   --- End of inner exception stack trace ---   at System.DirectoryServices.ActiveDirectory.PropertyManager.GetPropertyValue(DirectoryContext context, DirectoryEntry directoryEntry, String propertyName)   at System.DirectoryServices.ActiveDirectory.Domain.GetDomain(DirectoryContext context)   at Microsoft.Rtc.Management.ADConnect.Connection.DirectoryServicesTopologyProvider.GetDCForDomain(String fqdn, NetworkCredential networkCredential)   --- End of inner exception stack trace ---   at Microsoft.Rtc.Management.ADConnect.Connection.DirectoryServicesTopologyProvider.GetDCForDomain(String fqdn, NetworkCredential networkCredential)   at Microsoft.Rtc.Management.ADConnect.Connection.DirectoryServicesTopologyProvider.DiscoverDC()   at Microsoft.Rtc.Management.ADConnect.Connection.DirectoryServicesTopologyProvider..ctor()   at Microsoft.Rtc.Management.ADConnect.Connection.TopologyProvider.InitializeInstance()   at Microsoft.Rtc.Management.ADConnect.Session.ADSession.GetGlobalContainer()   at Microsoft.Rtc.Internal.ServerConfiguration.UCSettings.GetRootOU(ADSession session)   at Microsoft.Rtc.Internal.ServerConfiguration.UCSettings.<QueryContacts>d__6.MoveNext()   --- End of inner exception stack trace ---   at Microsoft.Rtc.Internal.ServerConfiguration.UCSettings.<QueryContacts>d__6.MoveNext()   at Microsoft.Rtc.Internal.ServerConfiguration.UCSettings.ProcessInitialContacts()   at Microsoft.Rtc.Internal.ServerConfiguration.UCSettings.RetrieveInitialContacts()   at Microsoft.Rtc.Internal.ServerConfiguration.UCSettings..ctor(String applicationId, SettingsWrapperOptions options)   at Microsoft.Rtc.Internal.ServerConfiguration.UCSettings.Get(String applicationId, SettingsWrapperOptions options)   at Microsoft.Rtc.Collaboration.ProvisioningSourceImpl.GetInitialPlatformData()   --- 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 Lync.Widget.Service.Presence.UcmaHelper.PlatformStartupCompleted(IAsyncResult result) in C:\Projects\ItPartner\lyncwidget-b411f8b4a83d\lyncwidget_b411f8b4a83d\src\Lync.Widget\Lync.Widget.Service\Presence\UcmaHelper.cs:line 296Detected at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)   at System.Environment.get_StackTrace()   at Microsoft.Rtc.Collaboration.ProvisioningFailureException..ctor(String message, Exception innerException, ProvisioningFailureReason failureReason)   at Microsoft.Rtc.Collaboration.ProvisioningSourceImpl.GetInitialPlatformData()   at Microsoft.Rtc.Collaboration.ProvisioningSourceGetInitialPlatformDataAsyncResult.ProcessCoreHelper()   at Microsoft.Rtc.Collaboration.SipCollaborationAsyncResult.ProcessCore()   at Microsoft.Rtc.Signaling.AsyncWorkitemQueue.ProcessItems()   at Microsoft.Rtc.Signaling.SerializationQueue`1.ResumeProcessing()   at Microsoft.Rtc.Signaling.SerializationQueue`1.ResumeProcessingCallback(Object state)   at Microsoft.Rtc.Signaling.QueueWorkItemState.ExecuteWrappedMethod(WaitCallback method, Object state)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()   at System.Threading.ThreadPoolWorkQueue.Dispatch()   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()FailureReason = 22012-04-04 22:28:46,177 [52] INFO  Lync.Widget.Service.Presence.UcmaHelper [(null)] - The platform is now shutdown.2012-04-04 22:28:46,178 [54] ERROR Lync.Widget.Service.Presence.UcPresenceProvider [(null)] - UCPresenceProvider failed: Could not initialize remote presence view {0}System.ArgumentNullException: Value cannot be null.Parameter name: endpoint   at Microsoft.Rtc.Collaboration.Presence.RemotePresenceView..ctor(LocalEndpoint endpoint, RemotePresenceViewSettings settings)   at Lync.Widget.Service.Presence.UcPresenceProvider.InitializeRemotePresenceView() in C:\Projects\ItPartner\lyncwidget-b411f8b4a83d\lyncwidget_b411f8b4a83d\src\Lync.Widget\Lync.Widget.Service\Presence\UcPresenceProvider.cs:line 1612012-04-04 22:28:46,179 [54] INFO  Lync.Widget.Service.Service [(null)] - LyncWidget service failed to start

 

Thank you very much for your help.

Jul 12, 2012 at 9:49 PM
Edited Jul 12, 2012 at 10:37 PM

I'm having the EXACT same problem.  Was this ever solved?

EDIT: In addition to the above exception, I've gone through and tried debugging to pin down exactly where the fault is occurring.  It seems that by the time it hits line 26 of UcPresenceProvider.cs, it is failing because ApplicationEndpoint endpoint is null.  Maybe I've been looking at this source for too long, but I'm coming up blank (literally).  Any suggestions?


 

Kevin Cefalu
Web Programming & Development
University Computing and Communications, UNO

Email: kjcefal1@uno.edu
Lync: kjcefal1@uno.edu
Location: UCC 101-P

Aug 28, 2012 at 12:02 PM

Is your endpoint local to the service or on a remote server?

Aug 28, 2012 at 1:50 PM
It should be local to the server. I can't check because we're evacuated and our datacenter is shut down due to Hurricane Isaac. I was getting endpoint not found when trying to make calls against the Web service, in a browser. 

alanr74 <notifications@codeplex.com> wrote:

From: alanr74

Is your endpoint local to the service or on a remote server?

Aug 28, 2012 at 3:07 PM

looking at your error at the top, it looks like you don't have an AD user setup for the endpoint. Which I suspect you have got. Try making the AD user in the credentials, different to the SIP user.

The presence indicator seems to need an active AD user and an Account account in your Lync database. If you don't have the AD one correct, then when it tries to connect to the endpoint (which needed a valid account to setup), it will come across as NULL.

Also, make sure you have replication setup between your Lync Server and the Front End server that your endpoint is on. Check it in the management console. This caused no end of problems for me when setting it up.

 

Alan

Nov 27, 2012 at 7:21 AM

 

In IIS (7) , In the application pool , define the domain user.

Application pools >> (your pool application) >> Advanced Settings >> Process Model >> Identity >> Custom Account >> Set >> "domain\user_name" .