I am attempting to setup a new work space and transfer all of my projects from my old computer to the new one. However, I am getting this error when I try to run IIS Expres
I had to do a repair installation of .net core 2.2 sdk to fix this issue. Using VS 2017.
The solution in my case was deleted web.config from the root of the project. I was working on an ASPnetcore project and after a week the error started. I am unsure how that web.config file got added but once I delete that their error got resolved.
I have this issue right after updating Microsoft Visual Studio 2017 pro, so far I found 3 potential solutions :
Restart Visual Studio works, sometimes,
Delete %USERPROFILE%.nuget may solve the issue,
Uninstall, then reinstall dotnet SDK,
Visual Studio 2017 -> The fix for me was to choose the Project Name instead of IISExpress when debugging/running.
In your startup project be sure that you have selected the option Enable Anonymous Authentication
in my case. i choose "ProjectName" instead of "IIS Express" while running/debugging. and it works/open with a console output window and selected browser, keep console output window open while debugging. Hope this will work.