In one of my ASP.NET apps, all of a sudden I am unable to run it in Visual Studio 2013 due to the error displayed below. It appears that it is trying to open the web.config from
I had this issue when I moved the project folder to the new machine. The problem is that the VS has the site registered in its config file (applicationhost.config
) inside .vs/
folder but did not create folder inside %USERPROFILE%\My Documents\My Web Sites\
. If you just click Create Virtual Directory inside the project properties (Web tab) it will not be enough.
.vs/
folder inside your solution directory%USERPROFILE%\My Documents\My Web Sites\