Skip to content

An unhandled exception in ProcessWebSocketRequestAsync method for request #3342

@Xiaohongt

Description

@Xiaohongt

Customer report error:

<Events><Event><System><Provider Name="ASP.NET 4.0.30319.0"/><EventID>1309</EventID><Level>2</Level><Task>0</Task><Keywords>Keywords</Keywords><TimeCreated SystemTime="2014-11-20T18:10:39Z"/><EventRecordID>772772437</EventRecordID><Channel>Application</Channel><Computer>RD00155DF78273</Computer><Security/></System><EventData><Data>3005</Data><Data>An unhandled exception has occurred.</Data><Data>11/20/2014 6:10:39 PM</Data><Data>11/20/2014 6:10:39 PM</Data><Data>7c00e47e124044b2a01c26db4fd24e1d</Data><Data>30692</Data><Data>22</Data><Data>0</Data><Data>/LM/W3SVC/46636793/ROOT-1-130609795883616389</Data><Data>Full</Data><Data>/</Data><Data>D:\home\site\wwwroot\</Data><Data>RD00155DF78273</Data><Data></Data><Data>10920</Data><Data>w3wp.exe</Data><Data>IIS APPPOOL\bingpulseuatweb</Data><Data>WebSocketException</Data><Data>The received  message type is invalid after calling WebSocketCloseAsync. WebSocketCloseAsync should only be used if no more data is expected from the remote endpoint. Use 'WebSocketCloseOutputAsync' instead to keep being able to receive data but close the output channel.
   at System.Web.WebSockets.AspNetWebSocket.&lt;&gt;c__DisplayClass3.&lt;&lt;CloseAsyncImpl&gt;b__2&gt;d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNet.SignalR.WebSockets.WebSocketHandler.&lt;ProcessWebSocketRequestAsync&gt;d__e.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Owin.Host.SystemWeb.OwinCallContext.&lt;AcceptCallback&gt;d__a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.WebSocketPipeline.&lt;ProcessRequestImplAsync&gt;d__8.MoveNext()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions