I had a similar issue. Try this and it should work
-
Go to your project folder and open the
.vs
folder (keep your check hidden item-box checked as this folder may be hidden sometimes) -
In the
.vs
folder open theconfig
folder -
See that
applicationhost.config
file there? Delete that thing. (Do not worry it will regenerate automatically once you recompile the project.)