Skip to content

Blazor WASM in VS2022 not work with 7.0.8 #88204

Closed

Description

@TFreudi1

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.

Activity

  1. transferred this issue fromdotnet/coreon Jun 23, 2023
  2. fredjc13 commented on Jun 23, 2023

    @fredjc13

    This worked for me also!!

  3. TFreudi1 commented on Jun 23, 2023

    @TFreudi1
    Author

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

  4. janhjordie commented on Jun 27, 2023

    @janhjordie

    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 !

  5. afumfer commented on Jun 28, 2023

    @afumfer

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

  6. mkArtakMSFT commented on Jun 29, 2023

    @mkArtakMSFT
  7. ghost added
    needs-area-label
    on Jun 29, 2023
  8. ghost added
    untriaged
    on Jun 29, 2023
  9. thaystg commented on Jun 29, 2023

    @thaystg
    Member
  10. thaystg commented on Jun 29, 2023

    @thaystg
    Member

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

  11. TFreudi1 commented on Jun 30, 2023

    @TFreudi1
    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.

  12. TFreudi1 commented on Jun 30, 2023

    @TFreudi1
    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.

  13. afumfer commented on Jun 30, 2023

    @afumfer

    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.

  14. DuckScapePhilip commented on Jul 2, 2023

    @DuckScapePhilip

    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.

  15. added
    arch-wasm
    and removed
    needs-area-label
    on Jul 2, 2023
  16. thaystg commented on Jul 3, 2023

    @thaystg
    Member

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

  17. changed the title [-]Debugging Blazor WASM in VS2022 not work with 7.0.8[/-] [+]Blazor WASM in VS2022 not work with 7.0.8[/+] on Jul 3, 2023
  18. mkArtakMSFT commented on Jul 3, 2023

    @mkArtakMSFT

    @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.

  19. removed
    untriaged
    on Jul 6, 2023
  20. added this to the 8.0.0 milestone on Jul 6, 2023
  21. lewing commented on Jul 10, 2023

    @lewing
    Member

    simliar issue to #88391

  22. thaystg commented on Jul 26, 2023

    @thaystg
    Member

    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

  23. thaystg commented on Jul 26, 2023

    @thaystg
    Member

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

  24. ghost locked as resolved and limited conversation to collaborators on Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Debugger-mono

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions