Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to load Web Application project due to its configuration

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.

like image 250
vchyzhevskyi Avatar asked Jan 16 '14 11:01

vchyzhevskyi


1 Answers

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!

like image 105
Jonathan Avatar answered Sep 21 '22 07:09

Jonathan