I am getting this error whenever I try to debug my project from visual studio.
I tried adding these settings to launchSettings.json but still no difference.
I had installed another file editor (Code Writer) that set itself as the default program for a whole host of files that were previously set to Visual Studio. Between a combination of doing a VS Installer Repair, and manually changing other associations back to VS, and a reboot, it's working for me again.
Had this issue today. Tried closing Visual studio 2017 and IIS Express but issue was still occurring. Tried running VS 2017 as Admin still got error. In the end I restarted Windows and issue no longer occurs.
By just restarting I was able to keep the "Enable JavaScript debugging for ASP.NET (Chrome, Edge and IE)" enabled.
I used to receive similar error. Every time I tried to debug the process was crashing, this was related to javascript debugging.
inside Debug -> Options you can disable it.
Just uncheck the highlighted one:
Had this issue in an ASP.NET Core project because in the project settings on debugging I had checked start browser but by mistake with an empty url. After I set the app url (http://localhost:5000
by default), it works well.
You can also set this in the <project>/Properties/launchSettings.json
file:
"applicationUrl": "http://localhost:5000"
Please note to set this to your app profile (IIS or if you want to use the build in webserver, the name if your app as key instead).
Disable Script Debugging in Debugging options.
What worked for me it was: disabling Chrome run on background
You can then re-enable that on Chrome advanced settings:
This was very annoying problem. I hope it can help someone else having the same issue.