Initial chat sessions fail

Mar 21, 2012 at 11:24 AM

I have installed the chat and presence widtget in my demo environment and presence works fine, unfortunately I seem to have a little problem with the chat part.

The problem only seems to manifest itself when the application pool is restarted.

I can load the page and see the presence state. When i click the chat button the chat box opens and I get the robot questions. After that the box will hang there forever.

On the second attempted click chat I get a chat box that asks my name which I give and I then answer how Can I help you. I then receive a message saying:

The message could not be send because the messagingflow is in the idle state.

Strangly enough the answers to the first two questions is transmitted to the lync client of the user being "called". However the session is ended.

If the called user picks up / accepts the session before the second bot question is answered it seems to work fine. Also subsequent sessions after the first two sessions will not show this problem and will work fine.

At the moment I have zero experience programming with the ucma, so if anyone recognizes this behaviour please let met know. I have attached the log files that compromise a session as stated above.

--- ERROR LOG ---

2012-03-21 11:15:19,113 [11] ERROR Lync.Widget.Service.Service [(null)] - Unable to init chat session 0.3996033910805217.
System.InvalidOperationException: This operation can only be performed when endpoint is in Idle state and platform is Started
   at Microsoft.Rtc.Collaboration.LocalEndpoint.BeginEstablish(IEnumerable`1 additionalHeaders, AsyncCallback userCallback, Object state)
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageProvider..ctor(CollaborationPlatform collabPlatform, String session, String sipuri, String username, String page, String topic) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageProvider.cs:line 182
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.InitChatSession(String session, String employeeSip, String username, String page, String topic) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 100
   at Lync.Widget.Service.Service.InitChatSession(String session, String employeeSip, String webUserName, String page, String topic) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\Service.svc.cs:line 57
2012-03-21 11:15:22,739 [9] ERROR Lync.Widget.Service.Service [(null)] - Unable to send message from webuser for session 0.3996033910805217.
Lync.Widget.Service.InstantMessaging.SessionNotFoundException: Exception of type 'Lync.Widget.Service.InstantMessaging.SessionNotFoundException' was thrown.
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.GetProvider(String session) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 246
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.SendInstantMessageToLyncClient(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 220
   at Lync.Widget.Service.Service.SendInstantMessage(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\Service.svc.cs:line 73
2012-03-21 11:16:30,822 [19] ERROR Lync.Widget.Service.Service [(null)] - Unable to send message from webuser for session 0.3996033910805217.
Lync.Widget.Service.InstantMessaging.SessionNotFoundException: Exception of type 'Lync.Widget.Service.InstantMessaging.SessionNotFoundException' was thrown.
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.GetProvider(String session) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 246
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.SendInstantMessageToLyncClient(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 220
   at Lync.Widget.Service.Service.SendInstantMessage(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\Service.svc.cs:line 73
2012-03-21 11:16:38,541 [23] ERROR Lync.Widget.Service.InstantMessaging.UCInstantMessageProvider [(null)] - A message was attempted to be sent while the messagingFlow was in state Idle, for session 0.8302531944179181
2012-03-21 11:17:15,896 [9] ERROR Lync.Widget.Service.Service [(null)] - Unable to send message from webuser for session 0.7015172419922118.
Lync.Widget.Service.InstantMessaging.SessionNotFoundException: Exception of type 'Lync.Widget.Service.InstantMessaging.SessionNotFoundException' was thrown.
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.GetProvider(String session) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 246
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.SendInstantMessageToLyncClient(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 220
   at Lync.Widget.Service.Service.SendInstantMessage(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\Service.svc.cs:line 73

 

--- LOG ---

 

2012-03-21 11:14:40,853 [3] INFO  Lync.Widget.Service.Service [(null)] - LyncWidget service starting up
2012-03-21 11:14:46,119 [8] INFO  Lync.Widget.Service.Presence.UcmaHelper [(null)] - The platform is now started.
2012-03-21 11:14:46,119 [8] INFO  Lync.Widget.Service.Presence.UcmaHelper [(null)] - ApplicationEndpointOwnerDiscovered event was raised during startup of the CollaborationPlatform.
2012-03-21 11:14:46,478 [8] INFO  Lync.Widget.Service.Presence.UcmaHelper [(null)] - Endpoint sip:10.30.9.106@project.dummy state changed from Idle to Establishing. Reason = None.
2012-03-21 11:14:51,991 [13] INFO  Lync.Widget.Service.Presence.UcmaHelper [(null)] - Endpoint sip:10.30.9.106@project.dummy state changed from Establishing to Established. Reason = None.
2012-03-21 11:14:51,991 [13] INFO  Lync.Widget.Service.Presence.UcmaHelper [(null)] - Application Endpoint successfully established
2012-03-21 11:14:51,991 [3] INFO  Lync.Widget.Service.Presence.UcPresenceProvider [(null)] - UcPresenceProvider started
2012-03-21 11:14:52,007 [3] INFO  Lync.Widget.Service.Service [(null)] - LyncWidget service started successfully
2012-03-21 11:15:19,035 [11] INFO  Lync.Widget.Service.Service [(null)] - Init chat requested from webUserName bart for session 0.3996033910805217 with employeeSip sip:demo1@project.dummy, page http://t0691.project.dummy/index.htm, topic
2012-03-21 11:15:19,113 [11] ERROR Lync.Widget.Service.Service [(null)] - Unable to init chat session 0.3996033910805217.
System.InvalidOperationException: This operation can only be performed when endpoint is in Idle state and platform is Started
   at Microsoft.Rtc.Collaboration.LocalEndpoint.BeginEstablish(IEnumerable`1 additionalHeaders, AsyncCallback userCallback, Object state)
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageProvider..ctor(CollaborationPlatform collabPlatform, String session, String sipuri, String username, String page, String topic) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageProvider.cs:line 182
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.InitChatSession(String session, String employeeSip, String username, String page, String topic) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 100
   at Lync.Widget.Service.Service.InitChatSession(String session, String employeeSip, String webUserName, String page, String topic) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\Service.svc.cs:line 57
2012-03-21 11:15:20,067 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:21,035 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:22,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:22,739 [9] INFO  Lync.Widget.Service.Service [(null)] - Message sent from webuser for session 0.3996033910805217: bart: kjkj
2012-03-21 11:15:22,739 [9] WARN  Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter [(null)] - SessionNotFoundException for session 0.3996033910805217 and message 'bart: kjkj'
2012-03-21 11:15:22,739 [9] ERROR Lync.Widget.Service.Service [(null)] - Unable to send message from webuser for session 0.3996033910805217.
Lync.Widget.Service.InstantMessaging.SessionNotFoundException: Exception of type 'Lync.Widget.Service.InstantMessaging.SessionNotFoundException' was thrown.
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.GetProvider(String session) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 246
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.SendInstantMessageToLyncClient(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 220
   at Lync.Widget.Service.Service.SendInstantMessage(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\Service.svc.cs:line 73
2012-03-21 11:15:23,067 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:24,051 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:25,051 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:26,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:27,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:28,208 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:29,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:30,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:31,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:32,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:33,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:34,052 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:35,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:36,036 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:37,021 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:38,052 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:39,037 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:40,021 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:41,037 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:42,037 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:43,037 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:44,037 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:45,037 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:46,037 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:47,037 [14] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:48,037 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:49,022 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:50,053 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:51,038 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:52,038 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:53,038 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:54,038 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:55,038 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:56,054 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:57,038 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:58,038 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:15:59,085 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:00,038 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:01,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:02,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:03,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:04,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:05,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:06,055 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:07,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:08,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:09,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:10,055 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:11,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:12,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:13,039 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:14,040 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:15,040 [9] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:16,055 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:17,055 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:18,040 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:19,040 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:20,040 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:21,056 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:22,056 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:23,150 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:24,040 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:25,040 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:26,040 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:27,041 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:28,041 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:29,041 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:30,041 [19] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.3996033910805217
2012-03-21 11:16:30,822 [19] INFO  Lync.Widget.Service.Service [(null)] - Message sent from webuser for session 0.3996033910805217: The web user closed the chat window.
2012-03-21 11:16:30,822 [19] WARN  Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter [(null)] - SessionNotFoundException for session 0.3996033910805217 and message 'The web user closed the chat window.'
2012-03-21 11:16:30,822 [19] ERROR Lync.Widget.Service.Service [(null)] - Unable to send message from webuser for session 0.3996033910805217.
Lync.Widget.Service.InstantMessaging.SessionNotFoundException: Exception of type 'Lync.Widget.Service.InstantMessaging.SessionNotFoundException' was thrown.
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.GetProvider(String session) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 246
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.SendInstantMessageToLyncClient(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 220
   at Lync.Widget.Service.Service.SendInstantMessage(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\Service.svc.cs:line 73
2012-03-21 11:16:35,369 [23] INFO  Lync.Widget.Service.Service [(null)] - Init chat requested from webUserName bart for session 0.8302531944179181 with employeeSip sip:demo1@project.dummy, page http://t0691.project.dummy/index.htm, topic
2012-03-21 11:16:36,260 [23] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.8302531944179181
2012-03-21 11:16:37,588 [23] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.8302531944179181
2012-03-21 11:16:38,541 [23] INFO  Lync.Widget.Service.Service [(null)] - Message sent from webuser for session 0.8302531944179181: bart: sdfsdf
2012-03-21 11:16:38,541 [23] ERROR Lync.Widget.Service.InstantMessaging.UCInstantMessageProvider [(null)] - A message was attempted to be sent while the messagingFlow was in state Idle, for session 0.8302531944179181
2012-03-21 11:16:38,994 [23] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.8302531944179181
2012-03-21 11:16:52,800 [13] INFO  Lync.Widget.Service.InstantMessaging.UCInstantMessageProvider [(null)] - MessagingFlow state changed to Terminated, for session 0.8302531944179181
2012-03-21 11:16:59,582 [18] INFO  Lync.Widget.Service.Service [(null)] - Init chat requested from webUserName jkjlkj for session 0.7015172419922118 with employeeSip sip:demo1@project.dummy, page http://t0691.project.dummy/index.htm, topic
2012-03-21 11:17:01,504 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:01,957 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:02,520 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:03,551 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:03,629 [18] INFO  Lync.Widget.Service.Service [(null)] - Message sent from webuser for session 0.7015172419922118: jkjlkj: kjlkjk
2012-03-21 11:17:04,535 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:05,536 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:06,145 [18] INFO  Lync.Widget.Service.Service [(null)] - Message sent from webuser for session 0.7015172419922118: jkjlkj: lk;lkl
2012-03-21 11:17:06,536 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:07,520 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:08,520 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:09,895 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:10,520 [18] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:11,520 [14] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:12,521 [14] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:13,646 [22] INFO  Lync.Widget.Service.InstantMessaging.UCInstantMessageProvider [(null)] - MessagingFlow state changed to Terminated, for session 0.7015172419922118
2012-03-21 11:17:13,677 [14] INFO  Lync.Widget.Service.Service [(null)] - webuser requests instant messages for session 0.7015172419922118
2012-03-21 11:17:15,896 [9] INFO  Lync.Widget.Service.Service [(null)] - Message sent from webuser for session 0.7015172419922118: The web user closed the chat window.
2012-03-21 11:17:15,896 [9] WARN  Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter [(null)] - SessionNotFoundException for session 0.7015172419922118 and message 'The web user closed the chat window.'
2012-03-21 11:17:15,896 [9] ERROR Lync.Widget.Service.Service [(null)] - Unable to send message from webuser for session 0.7015172419922118.
Lync.Widget.Service.InstantMessaging.SessionNotFoundException: Exception of type 'Lync.Widget.Service.InstantMessaging.SessionNotFoundException' was thrown.
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.GetProvider(String session) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 246
   at Lync.Widget.Service.InstantMessaging.UCInstantMessageRouter.SendInstantMessageToLyncClient(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\InstantMessaging\UCInstantMessageRouter.cs:line 220
   at Lync.Widget.Service.Service.SendInstantMessage(String session, String message) in C:\Users\administrator.PROJECT\Documents\Visual Studio 2010\Projects\Lync.Widget\Lync.Widget.Service\Service.svc.cs:line 73
2012-03-21 11:17:19,990 [15] INFO  Lync.Widget.Service.Presence.UcmaHelper [(null)] - Stopping ucma platform
2012-03-21 11:17:20,974 [13] INFO  Lync.Widget.Service.Presence.UcmaHelper [(null)] - Endpoint sip:10.30.9.106@project.dummy state changed from Established to Terminating. Reason = None.
2012-03-21 11:17:21,287 [6] INFO  Lync.Widget.Service.Presence.UcmaHelper [(null)] - The platform is now shutdown.
2012-03-21 11:17:21,303 [15] INFO  Lync.Widget.Service.Global [(null)] - LyncWidget service stopped successfully

Sep 5, 2012 at 2:52 PM

Possible solution is to disable idle time-out on the application pool. use 0 to disable.