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

Blazor WASM in VS2022 not work with 7.0.8 #88204

Closed
TFreudi1 opened this issue Jun 23, 2023 · 17 comments
Closed

Blazor WASM in VS2022 not work with 7.0.8 #88204

TFreudi1 opened this issue Jun 23, 2023 · 17 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Debugger-mono
Milestone

Comments

@TFreudi1
Copy link

I have a Blazor WASM project where I just upgraded via nuget Microsoft.AspNetCore.Components.WebAssembly, Microsoft.AspNetCore.Components.WebAssembly.DevServer from Version 7.0.7 to 7.0.8. With that I can't debug anymore, when downgrade both packages to 7.0.7 everything works.
I use latest VS2022 17.6.4.
The errormessagebox says "Process with an ID ... is not running."

The DOS Box says:
You must install or update .NET to run this application.

App: C:\Users\thomasf.FREUDI7.nuget\packages\microsoft.aspnetcore.components.webassembly.devserver\7.0.8\tools\blazor-devserver.dll
Architecture: x64
Framework: 'Microsoft.AspNetCore.App', version '7.0.8' (x64)
.NET location: C:\Program Files\dotnet\

The following frameworks were found:
2.1.2 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.13 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.15 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.16 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.17 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.18 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.19 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.20 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.21 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.22 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.23 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.24 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.27 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.30 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.3 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.13 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.14 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.15 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.30 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.31 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.32 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
5.0.4 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
5.0.6 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
5.0.9 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
5.0.17 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.5 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.10 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.11 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.13 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.18 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
7.0.7 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=7.0.8&arch=x64&rid=win10-x64

C:\Program Files\dotnet\dotnet.exe (Prozess "14404") wurde mit Code "-2147450730" beendet.
Um die Konsole beim Beenden des Debuggens automatisch zu schließen, aktivieren Sie "Extras" > "Optionen" > "Debuggen" > "Konsole beim Beenden des Debuggings automatisch schließen".
Drücken Sie eine beliebige Taste, um dieses Fenster zu schließen.

@CarnaViire CarnaViire transferred this issue from dotnet/core Jun 23, 2023
@fredjc13
Copy link

This worked for me also!!

@TFreudi1
Copy link
Author

For me it don't work on 3 different computers. 2 times Win 11, 1 Win10, all with VS2022 17.6.4

@janhjordie
Copy link

Same issue for me as well. Also updated to .NET 7.0.8, but that did not work.
Downgrade to 7.0.7 is the only way for now !

@afumfer
Copy link

afumfer commented Jun 28, 2023

I have the same problem with .net 7.0.8. I have also downgraded the version to 7.0.7.

@mkArtakMSFT
Copy link
Member

Ping @thaystg

@mkArtakMSFT mkArtakMSFT transferred this issue from dotnet/aspnetcore Jun 29, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 29, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jun 29, 2023
@thaystg
Copy link
Member

thaystg commented Jun 29, 2023

Can you please try to install the SDK 7.0.8?
https://dotnet.microsoft.com/en-us/download/dotnet/7.0

@thaystg
Copy link
Member

thaystg commented Jun 29, 2023

Also can you test if it works if you start without debugging?
image

@TFreudi1
Copy link
Author

Also can you test if it works if you start without debugging? image

That don't work, same error. I also trying to switch Release Mode and than STRG-F5, same error.

@TFreudi1
Copy link
Author

Can you please try to install the SDK 7.0.8? https://dotnet.microsoft.com/en-us/download/dotnet/7.0

I will, but the last time I tried installing a NET SDK separate from the VS2022 installer I later ended up in completly removing VS2022, executing cleaning scripts .... I will install a VM and try that for you, but it needs some time.

@afumfer
Copy link

afumfer commented Jun 30, 2023

My Blazor WebAssembly projects with ASP.NET Core Hosted, .NET 7.0.8 and Visual Studio 17.6.4 all work fine.
But in my standalone Blazor WebAssembly projects with .NET 7.0.8 this error persists. It doesn't work without debugging nor release mode. For it to work I have to downgrade to version 7.0.7.

@DuckScapePhilip
Copy link

I am on 17.6.4 (VS2022) and .NET 7.0.8 and had the same issue. I downloaded the 7.0.8 hosting bundle and it worked after that. Must be missing from the 17.6.4 update or something.

@vcsjones vcsjones added arch-wasm WebAssembly architecture area-Debugger-mono and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jul 2, 2023
@ghost
Copy link

ghost commented Jul 2, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

I have a Blazor WASM project where I just upgraded via nuget Microsoft.AspNetCore.Components.WebAssembly, Microsoft.AspNetCore.Components.WebAssembly.DevServer from Version 7.0.7 to 7.0.8. With that I can't debug anymore, when downgrade both packages to 7.0.7 everything works.
I use latest VS2022 17.6.4.
The errormessagebox says "Process with an ID ... is not running."

The DOS Box says:
You must install or update .NET to run this application.

App: C:\Users\thomasf.FREUDI7.nuget\packages\microsoft.aspnetcore.components.webassembly.devserver\7.0.8\tools\blazor-devserver.dll
Architecture: x64
Framework: 'Microsoft.AspNetCore.App', version '7.0.8' (x64)
.NET location: C:\Program Files\dotnet\

The following frameworks were found:
2.1.2 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.13 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.15 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.16 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.17 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.18 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.19 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.20 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.21 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.22 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.23 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.24 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.27 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
2.1.30 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.3 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.13 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.14 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.15 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.30 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.31 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
3.1.32 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
5.0.4 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
5.0.6 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
5.0.9 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
5.0.17 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.5 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.10 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.11 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.13 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
6.0.18 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
7.0.7 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=7.0.8&arch=x64&rid=win10-x64

C:\Program Files\dotnet\dotnet.exe (Prozess "14404") wurde mit Code "-2147450730" beendet.
Um die Konsole beim Beenden des Debuggens automatisch zu schließen, aktivieren Sie "Extras" > "Optionen" > "Debuggen" > "Konsole beim Beenden des Debuggings automatisch schließen".
Drücken Sie eine beliebige Taste, um dieses Fenster zu schließen.

Author: TFreudi1
Assignees: -
Labels:

arch-wasm, untriaged, area-Debugger-mono

Milestone: -

@thaystg
Copy link
Member

thaystg commented Jul 3, 2023

@mkArtakMSFT can you help us to assign it to the right person?

@thaystg thaystg changed the title Debugging Blazor WASM in VS2022 not work with 7.0.8 Blazor WASM in VS2022 not work with 7.0.8 Jul 3, 2023
@mkArtakMSFT
Copy link
Member

@mkArtakMSFT can you help us to assign it to the right person?

Thanks @thaystg. I'll get someone to look into this later this week.

@lambdageek lambdageek removed the untriaged New issue has not been triaged by the area owner label Jul 6, 2023
@lambdageek lambdageek added this to the 8.0.0 milestone Jul 6, 2023
@lewing
Copy link
Member

lewing commented Jul 10, 2023

simliar issue to #88391

@thaystg
Copy link
Member

thaystg commented Jul 26, 2023

This is the expected behavior, if you want to use the 7.0.8 Microsoft.AspNetCore.Components.WebAssembly.DevServer package you need to use the 7.0.8 or earlier runtime version.
This is because the blazor-devserver.runtimeconfig.json is configured like this: https://github.com/dotnet/aspnetcore/blob/f9828517e57769959d43c89d06ad7f319880258c/src/Components/WebAssembly/DevServer/src/blazor-devserver.runtimeconfig.json.in#L6

This is the runtimeconfig of the 7.0.8 nuget package.
image

@thaystg
Copy link
Member

thaystg commented Jul 26, 2023

Also VS 17.6.4 installs dotnet 7.0.7, VS 17.6.5 installs dotnet 7.0.8.

@thaystg thaystg closed this as completed Jul 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Debugger-mono
Projects
None yet
Development

No branches or pull requests

10 participants