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
The issue in my case was
1- I upgrade (ported) my project (console/website) from .net 4.5 framework to donetcoreapp 2.0
2- .NET Framework 4.5 project had Web.Config
3- dotnetcore 2.0 does not have concept of maintaining web.config.
4- So whenever I ran the project I got the same error
solution:
Just deleted 'Web.Config' and it started working for me.