.NET 6.0 Blazor Server Side "WebSocket connection to '' failed:" (Visual Studio 2022) - WebSockets Connection with error 1006()

Mabuya, S. (Sidwell) 11 Reputation points
2022-05-09T09:25:40.027+00:00

Since updating Blazor server to .Net 6 on visual studio I am experiencing timeouts. I am running a Blazor server application on VPN with F5 federation. When I have 4 and more the applicants the Blazor application returns => 1006 error stating that the server abruptly terminated the connection ( WebSocket closed with status code: 1006()). At that time the UI reconnects and does another request and restarts the request. The thing stated once I added VS 2022 .net 6 on my machine. It never occurred before I updated my visual studio. I extended the ClientTimeout, KeepAliove and WebSoxkwtsCloseTimeout to double but the issue is not there. I think the issue might have been in the update. Can you kindly assist.

On VPN 5 applicants + F5 => Slow and reconnects
Using direct link to server => Fast from the direct link
Using VDI using Citrix on Azure => Fast with the use of VDI.

The security layer returns 1006 and closes the connection when we did an individual package inspection.

Developer technologies | .NET | Blazor
Developer technologies | ASP.NET | Other
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.