Unable to load Web Application project due to its configuration

vchyzhevskyi picture vchyzhevskyi · Jan 16, 2014 · Viewed 43.5k times · Source

I've a problem with loading Web Application project in VS2013. This project depends on IIS Express, but I wouldn't install IIS Express because I already installed IIS.

What I can edit in .csproj file to load this project? I've tried to set to false, but it's wouldn't help me to solve problem.

Thank you for advice.

Upd.1: Also, I cannot create new web projects - VS tell me same things.

Answer

Jonathan picture Jonathan · Apr 1, 2014

Happened to me too. My workaround:

  1. Right-click the (failed-to-load) project => edit web.csproj
  2. Find the line <UseIISExpress>true</UseIISExpress>, and change it to false.
  3. Save, close, reload project.

Result - different error:

The Web Application Project web is configured to use IIS. To access local IIS Web sites, you must run Visual Studio in the context of an administrator account. In addition, you must install the following IIS components:

ASP.NET

So:

  1. Edit again, change <UseIIS>True</UseIIS> to false
  2. Save, close, reload project.

Result - Great Success!