.NET 6.0 Blazor Server Side "WebSocket connection to '' failed:" (Visual Studio 2022)

Arnold Mendoza 11 Reputation points
2022-03-24T05:47:31.063+00:00

Hi everyone

I was excited to use the Blazor on .NET 6.0 when the Visual Studio 2022, so I tried to create a Blazor Server Side application with stylesheet and javascript that I used on my previous Blazor Server project, however, I encounter this error.

"WebSocket connection to 'wss://localhost:9895/MyProject/' failed: "

I thought it was a bug that the VS team needs to fix, so I wait for an update when they release 17.1.2.(3/22/2022), the problem still persists.

then I found this post: https://developercommunity2.visualstudio.com/t/WebSocket-connection-to-wss:-fail/1670519?q=ERR_CONNECTION_RESET&ftype=problem&space=8&stateGroup=active&sort=newest

and notice that there are people who are the same as me, that still encounter this error, does everyone also experience this? or there is a workaround for this?

I hope someone can help me because I excited to use the .NET 6.0 version of Blazor Server Side

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,407 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,653 questions
{count} votes