Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot open Web projects in Visual Studio 2013

Tags:

iis-express

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.

like image 619
raumkrieger Avatar asked May 16 '14 15:05

raumkrieger


People also ask

How to debug localhost Visual Studio?

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).

Could not start debugging on the Web server?

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.

Why I cannot debug in Visual Studio?

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.


1 Answers

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.

like image 96
Aditya Bokade Avatar answered Oct 01 '22 06:10

Aditya Bokade