Websocket error

0
0

Hi, can you help us to understand this error ?

We are using wisej 2.2.59 and ourapplication is  VB visualstudio 2017.

In Windows Application log sometimes apperas this error and application is blocked.

Thanks

Nello Pernice

 

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/22/2023 10:22:48 AM
Event time (UTC): 6/22/2023 8:22:48 AM
Event ID: b8ee27958bda427baece033cf39f595d
Event sequence: 28945
Event occurrence: 5
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/ROOT-1-133318945468456853
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\EvoxWeb\
Machine name: VM-CETRAFE1-RM

Process information:
Process ID: 12052
Process name: w3wp.exe
Account name: RAIWAY\staer

Exception information:
Exception type: WebSocketException
Exception message: Reached the end of the file
at System.Web.WebSockets.WebSocketPipe.<>c__DisplayClass9_0.<ReadFragmentAsync>b__0(Int32 hrError, Int32 cbIO, Boolean fUtf8Encoded, Boolean fFinalFragment, Boolean fClose)
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.WebSockets.AspNetWebSocket.<DoWork>d__45`1.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.WebSockets.AspNetWebSocket.<>c__DisplayClass36_0.<<ReceiveAsyncImpl>b__0>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Wisej.Core.HttpHandler.<ProcessWebSocketRequest>d__20.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.WebSocketPipeline.<ProcessRequestImplAsync>d__9.MoveNext()

 

 

  • You must to post comments
0
0

Hi Nello,

Do you use a proxy ?

Do you have a long SessionTimeout value?

The issue can be due to several things, for example some antivirus apps block https requests that come in to fast, or throttle them, sometimes the quarantine the packet for a long time, sometimes they simply don’t route the traffic without even closing the connection. It happens with both http and websocket.

Sometimes, Session expires on the server or the server cannot restore the session.

You can try setting validateClient:false in Default.json.

Best,
Alaa

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.