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