-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't debug ASP.NET Core hosted Blazor WebAssembly app under windows authentication #29504
Comments
@bryp thanks for contacting us. @captainsafia do you know what's going on here? (I believe i've seen this reported in the past). Feel free to close it if there is an existing issue for it or a known answer. |
Thanks for contacting us. |
Next sprint planning? FWIW - this one is blocking Blazor Wasm adoption at my company. Hard to believe one can't be able to debug under windows authentication, can someone help me to figure out a work around? |
@bryp this is our standard process for dealing with issues. I've dug out the issue tracking improvements for Blazor Webassembly debugging #22589, there's a more general issue #27301 and this is a known issue in 5.0 See here for details. The issue mentions a workaround, but I don't seem to be able to find it by skimming the docs. I understand that this might not be what you want to hear, I can only suggest you switch to a different auth scheme (one of the ones we support out of the box) or replace/turn-off windows auth when you want to debug the application. Also, as a side note, we don't recommend using Windows Auth with single page applications unless you take appropriate steps to further protect your app against CSRF attacks |
@captainsafia if you know a workaround for this, feel free to comment/point to the docs. I'm closing this issue since it's a duplicate of #27301 |
@javiercn This is certainly disappointing. To be clear, you do support Windows Auth out of the box. You just don't support debugging Windows Auth out of the box for Wasm, which makes this issue all the more strange. Also, as a side note, CSRF attacks have nothing to do with Windows Auth so CSRF protection applies to all Auth schemes and of course is good practice. |
This is correct. The implementation for debugging .NET on WASM is a little bit different than .NET on the Server which is why this issue presents itself here. @bryp If you're up for it, you can try manually launching the debug proxy to see if that resolves the issue. To do that, you will need to:
|
@captainsafia Thank you for the try but it didn't work. Still get the same "Failed to launch debug adapter" error. |
Hi folks, I am unable to debug an ASP.NET Core hosted Blazor WebAssembly app. The server project uses windows authentication. Steps to reproduce are simple and listed below.
Create a new ASP.NET Core hosted Blazor WebAssembly app.

Enable Windows Authentication on the Server project.

Press F5 to debug. My web browser is set to Chrome. Receive the following error message.

About Visual Studio

Attached please find visualstudio-js-debugger.txt.
visualstudio-js-debugger.txt
The text was updated successfully, but these errors were encountered: