Blazor Web Assembly crashing on debugging mode in Visual Studio
See original GitHub issueDescribe the bug
I’m having an odd behavior where debugging a Blazor Web Assembly application crash Visual Studio 16.6.0 Preview 2.1 when you start typing into the textboxes
To Reproduce
Create a component with the following markup
<EditForm Model="loginRequest" OnValidSubmit="HandleLogin">
<DataAnnotationsValidator />
<ValidationSummary />
<div>
<InputText @bind-Value="loginRequest.Email" placeholder="Email" autocomplete="off" />
</div>
<div class="input-group">
<InputText @bind-Value="loginRequest.Password" placeholder="Password" autocomplete="off" />
</div>
<div>
<div>
<label>
<InputCheckbox @bind-Value="loginRequest.RememberMe" /> Remember me
<span></span>
</label>
</div>
<div >
<a href="#">Forget Password ?</a>
</div>
</div>
<div>
<button type="submit">Sign In</button>
</div>
</EditForm>
The block above crash Visual Studio in debugging mode, but if you remove these two lines everything works.
<InputCheckbox @bind-Value="loginRequest.RememberMe" />
<a href="#">Forget Password ?</a>
Also, adding type="password"
to the InputText
also crash Visual Studio.
Further technical details
- ASP.NET Core version:
3.1.300-preview-015048
- The IDE (VS)
16.6.0 Preview 2.1
- Include the output of
dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.1.300-preview-015048
Commit: 13f19b4682
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.300-preview-015048\
Host (useful for support):
Version: 3.1.3
Commit: 4a9f85e9f8
.NET Core SDKs installed:
3.1.200 [C:\Program Files\dotnet\sdk]
3.1.201 [C:\Program Files\dotnet\sdk]
3.1.300-preview-015048 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Blazor app crashes when debugging after windows ...
Its annoying but to work around it for now you can pull up the Breakpoints window in VS by going to Debug -->...
Read more >Blazor Web Assembly - Debugger crashes on VS 2022 ...
Describe the bug. When pressing F5 on a Blazor WASM application, after the OIDC redirection to the login page of the IdP the...
Read more >Web socket Exception crashing Blazor WASM while ...
I'm having some trouble trying to get Blazor WASM debugging to work ... and run for about ~10-60s, before crashing and closing the...
Read more >Blazor webassembly template with .Net Core service ...
I've installed VS Community 2019 preview today, on an Azure VM (W10Enterprise). Chose 'new project, blazor, webassembly'.
Read more >Blazor WASM debugging takes forever to load initial page ...
Make sure that your Visual Studio debugger settings are configured correctly. · Try running the application in release mode instead of debug mode...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed with the new release.
Let’s wait till VS release and then give it a try, @yudielcurbelo. Please get back to you with your results.