Yesterday I installed an update (Visual Studio 2013 Update 2) to Visual Studio 2013 and since then it has not worked properly.
The update was taking quite a long ti
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!
its so funny
in windows 10 this problem happened because of oneDrive application.
if your oneDrive application is off, please run it first and reload project again.
it seem oneDrive lock this files
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!
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.