-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Blazor WASM crashes with certain Azure B2C configuration #20706
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
Comments
@adamasmar thanks for contacting us. This is an issue in the mono debugger proxy. I believe it is fixed already or will be soon. |
If you run the app without debugging (CTRL+F5) it should work properly. |
@javiercn, thanks. I am now able to run the application without a hard crash. However, I am still encountering a null reference exception for what I assume is |
So I am thoroughly confused. Loaded it this morning and it is working. Did not change anything in the code. The only thing was that the server (my dev computer) was restarted overnight. Looks like someone had a similar mysterious event here. I guess I will keep an eye on this? |
it's debug/vs non debug. WRT to your exception, that is a known issue that was addressed recently, update to the latest preview and try again. |
@javiercn, just clarify -- the latest Blazor Preview or the latest Visual Studio preview? |
Latest blazor preview, but I'm not sure if it made it into preview3. |
Gotcha. I'm on Blazor version 3.2.0-preview3.20168.3 for what it is worth. And in a further plot twist, when I debug the same server application within Visual Studio 16.4.3, I don't have any issues. It seems to only be occurring when I debug the server application on Version 16.6.0 Preview 2.1. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Blazor WASM hard crashes when attempting to login using Federated Azure Active Directory account. The application's B2C integration was set up using this guide. It seems as if it may be related to issues reported here, but its not conclusive.
It appears the following is returning null:
var tokenResult = await AuthenticationService.RequestAccessToken();
if (tokenResult.TryGetToken(out var token)) {}
Upon @javiercn's suggestion, I've narrowed it down to the
out var token
returning null. Seems possibly related to this.To Reproduce
Further technical details
The text was updated successfully, but these errors were encountered: