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 time so I let it run overnight, and when I returned to my workstation this morning, I was unable to load the WebForm projects in our solution. The error it gives when I attempt to reload the projects is The IIS Express applicationHost.config file contains invalid entries and must be corrected before you can open project WebSite.
I'm not the one on our team that configures the IIS server, so I don't think I have access to the applicationHost.config file, and I don't think it has changed any since yesterday anyways. I am the only one in my team having issues opening out projects, so I am convinced it is my environment and specifically the update I installed yesterday.
I've uninstalled and reinstalled Visual Studio 2013 to no avail.
Troubleshoot debugging Start the web app from IIS, and make sure it runs correctly. Leave the web app running. From Visual Studio, select Debug > Attach to Process or press Ctrl+Alt+P, and connect to the ASP.NET or ASP.NET Core process (typically w3wp.exe or dotnet.exe).
When you try to debug an ASP.NET application running on a Web server, you may get this error message: Unable to start debugging on the Web server . Often, this error occurs because an error or configuration change has occurred that requires an update to your Application Pools, an IIS reset, or both.
Go to Tools->Options->Debugging->General and see if the option "Use Managed compatibility mode" is selected. If it is, uncheck it and try again.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With