Search code examples
asp.net-coreauthenticationblazor-client-side

Blazor WebAssembly Hosted Proxy crash on successful authentication


I've recently encountered quite a weird problem with my Blazor WebAssembly application in which I've used the Authorization package. Now I'm not quite sure what it is but something that authentication is doing causes the Debug proxy to crash and the browser window just closes. The only output lines I could get, which I guess have something to do with it is:

Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll Exception thrown: 'Microsoft.AspNetCore.Connections.ConnectionResetException' in System.Private.CoreLib.dll Exception thrown: 'Microsoft.AspNetCore.Connections.ConnectionResetException' in System.Private.CoreLib.dll

I've found this GitHub issue which I think has to do something with this but I couldn't get any further solutions there...

I've tried it with different browsers to but the new Microsoft Edge as well as Chrome closes completly.

Anyone an idea why this happens?


Solution

  • Ok so something that has caused the debug browser NOT to crash is: Not using the password autocomplete for the login page. If I enter the password manually the browser doesn't crash on successful login. I have no idea how or why this works but it seems it does in some weird way.

    If anyone has an idea or so please post it so I can mark it as the actual answer to this problem. This here is more of a weird workaround.