SOS! I'm totally new to Visual Studio and am trying to learn C#, so I'm really struggling to find the right tools and terms to resolve my issue.
I just installed VS yesterday and ran into this issue on my very first Blazor WebAssembly app. I'm using Visual Studio 2019 8.9.6, Mac OS, Google Chrome.
When I create a new Blazor WebAssembly application, I'm running into the following issue:
- Click run (Debug > Google Chrome is automatic setting)
- Alert popup says: "dotnet quite unexpectedly" (I click Ignore, clicking Report and Reopen didn't change results.)
- Chrome says "Your connection is not private" > Advanced > Proceed to localhost
- Chrome says "This site can’t be reached" -- error code ERR_CONNECTION_REFUSED
- I try to hard refresh, but same error comes up
I've done some research and have tried the following so far:
- cleared browser cache and cookies
- restarted Chrome / Visual Studio / laptop
- uninstalled then reinstalled Visual Studio
- deleted the hidden .vs folder, then re-opened VS and ran debugger
- overrode domain security protocols for localhost (per this solution: chrome://net-internals/#hsts)
Oddly enough, it seems to run in Safari and Firefox okay, although I still have bypass "Your connection is not private". I'm already really comfortable with Chrome dev tools, so that's my preferred method of viewing the app.
Does anyone know what the issue is and how to correct it? I'm just so confused because I've followed all the standard setups and steps to creating this app. Thank you!