Prashant
Prashant

Reputation: 2192

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.

Upvotes: 9

Views: 7103

Answers (6)

cahit beyaz
cahit beyaz

Reputation: 5117

In my case (Same error) i solved my problem with following steps.
1-)open your project file with a text editor.
2-)find "USEIIS" tag and replace its value with "False". save and exit.
3-)reopen your project file with visual studio

Upvotes: 1

Ziv.Ti
Ziv.Ti

Reputation: 657

you need to turn on asp.net : controlpanel- Turn Windows Features ON and OFF -> IIS Services-> www- > application Dewvelopment features check the asp.net on

Upvotes: 1

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>

Upvotes: 1

Mark Whaling
Mark Whaling

Reputation: 11

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.

Upvotes: 1

SLaks
SLaks

Reputation: 887275

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

Upvotes: 19

Serapth
Serapth

Reputation: 7162

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

Upvotes: 2

Related Questions