Cannot open Web projects in Visual Studio 2013

南笙酒味 提交于 2019-12-05 06:15:46

This happens due to corrupt applicationHost.config file.

Instead of re-installing visual studio,

Go to C:\inetpub\history and copy applicationHost.config file to My Documents\IISExpress\config\

This should solve your problem.

I had the similar occurrence for a specific project only for VS 2015.

I went to the respective project folder .vs\config drive and deleted the applicationhost.config file. Then reloaded the project, and it created a new application host file and reloaded successfully.

Go to the path in the message error: At my case is C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config

And rename the file web.config to web_old.config.

At Solution Explorer try reload your project again.

Good look!

Go To C:\Program Files (x86)\IIS Express\config\templates\PersonalWebServer

Copy all the files from the above location to the locationC:\Users\User_Name\Documents\IISExpress\config

Ebrahim

You can copy the folder "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config" from another computer.

This should fix this problem in Visual Studio 2017

I had the same issue error occur. I simply deleted the files found within the \IISExpress\config folder and reloaded the project by closing and opening Visual Studio.

Hope these solutions help everyone else!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!