Skip to content
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

RC2 Blazor Wasm with DotNetCore server using Windows Authentication - can't debug #27437

Closed
elylv opened this issue Nov 2, 2020 · 2 comments
Closed
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@elylv
Copy link

elylv commented Nov 2, 2020

With an .NET5 RC2 Blazor WebAssembly project, with Windows Authentication (rather than Anonymous Authentication) enabled on the server.

When you attempt to debug the project, the browser will open, but the page doesn't load and eventually VS2019 reports:
_"One or more errors occurred.

Failed to launch debug adapter. Additional information may be available in the output window.

Exception of type
'Microsoft.VisualStudio.Shared.VSCodeDebugProtocol.ProtocolException' was thrown."_

This means I cannot debug the application as it will be running in production (so can't access HttpContext.User windows authentication info).

I believe this was supposed to be fixed in RC1 #21466 but it still persists for me.

@mkArtakMSFT mkArtakMSFT added area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly labels Nov 2, 2020
@mkArtakMSFT
Copy link
Member

Thanks for contacting us. This is a known issue for 5.0. We've documented how to work around it here (see the last bullet point).

We will try to address the underlying issue in 6.0 and is being tracked as part of #27301

@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Nov 2, 2020
@ghost ghost added the Status: Resolved label Nov 2, 2020
@elylv
Copy link
Author

elylv commented Nov 2, 2020

Thanks for contacting us. This is a known issue for 5.0. We've documented how to work around it here (see the last bullet point).

I've added "NO_PROXY": "localhost" in the Environmental Variables section of launchSettings for IIS Express in both my Server and Client projects, but it doesn't seem to have made any difference. Is this the correct thing I should be trying? The bullet point you mentioned is a little vague.
I also tried adding a system environmental variable for NO_PROXY with its value as localhost, but still no luck.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants