Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 throws exception while opening project

When I try opening a project I get an exception saying Web application is configured to use IIS.

Error : The Web Application Project EntityServices is configured to use IIS. To access local IIS Web sites, you must install the following IIS components:

  IIS 6 Metabase and IIS 6 Configuration Compatibility

In addition, you must run Visual Studio in the context of an administrator account.

NOTE - I have already installed IIS 7. My box is a x64 bit Windows 7 box.

like image 796
Prashant Avatar asked May 12 '10 22:05

Prashant


4 Answers

Go to Control Panel, Programs and Features, Turn Windows Features On or Off, and enable IIS 6 Metabase and IIS 6 Configuration Compatibility.

like image 86
SLaks Avatar answered Nov 04 '22 03:11

SLaks


Have you installed IIS6 Metabase support? It is a seperate install from IIS7, although in the same area.

Turn Windows Features ON and OFF -> IIS Services-> Web Management Tools -> IIS Management Compatibility and check IIS Metabase and IIS 6 configuration Compatibility

like image 21
Serapth Avatar answered Nov 04 '22 03:11

Serapth


This also happened to me when I had reconfigured the TCP Port on IIS to port 81. I was running TCPTrace, capturing traffic on port 80 and forwarding it to IIS at port 81.

After a reboot, I had to reconfigure IIS' TCP Port to 80 and the problem was resolved.

like image 1
Mark Whaling Avatar answered Nov 04 '22 03:11

Mark Whaling


I got the same error the solution is that you should open with notepad (web project)it's csproj file and remove this tag

<UseIIS>True</UseIIS>
like image 1
İbrahim Özbölük Avatar answered Nov 04 '22 03:11

İbrahim Özbölük