I've had this problem since this morning and have tried various options, but haven't found a solution to my problem yet.
The problem is that every time I want to start my Blazor web application I get this error message:

I tried several ways to solve this problem, however all I found was for IIS-Express with this problem. I use several startup projects, and I don't find any solution for my problem.
I had the same problem this morning after updating the Microsoft packages in my WASM-project. Updating Microsoft.AspNetCore.Components.WebAssembly.DevServer 6.0.8 to 6.0.9 resulted in the error mentioned. Updating to .NET 6.0.109 SDK solved this. So in general: after updating the DevServer package you need to be sure you have the corresponding .NET SDK version (or higher) installed.
I'm using VS 2022 17.4.0 preview 1.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With