Paul
Paul

Reputation: 777

Error message "unable to open web site" with VS 2008 on Vista

I am trying to open a project in VS 2008 and my domain account it in the administrator group. I get this message:

"Unable to open the Web site 'http://locahost'. To access Web sites on thie local IIS Web server, you must run Visual Studio under an Administrator account in order to have access to the IIS metabase. Alternatively, instll FrontPage Server Extensions (FPSE) and then grant FPSE access to users who will run Visual Studio"

alt text

Any body know what I need to do to fix this problem. I have tried modifying the shortcut to run as administrator but shouldn't have to do that if I am an admin on my machine.

Upvotes: 3

Views: 6107

Answers (5)

David Basarab
David Basarab

Reputation: 73301

Right click over the shortcut, and in Properties in the Compatibility tab, select Run As Administrator.

Also confirm IIS is installed. It is not installed by default on Vista. You have to go and Add/Remove Windows Components.

See here.

Upvotes: 1

mohammad
mohammad

Reputation: 361

Open Control Panel-> Programs and Features->Turn Windows features on or off. Under the list of features open Internet Information Services tree and then open Web Management Tools and then select IIS 6 Management Compatibility checkbox. Click OK button and install the selected feature of IIS.

enter image description here

link: http://geekswithblogs.net/technetbytes/archive/2011/10/11/147255.aspx

Upvotes: 1

guideX
guideX

Reputation: 89

What worked for me: - Windows 7 IIS Manager - Delete other websites in the list under 'Sites' - Right click the site - Edit Bindings - The 'host name' property was empty. Once I typed the name of the website there, I was able to load my site through Visual Studio 2008.

Upvotes: 1

Paul
Paul

Reputation: 777

I uninstalled IIS and then reinstalled using only the bear minimums and it worked.

Upvotes: 1

Quintin Robinson
Quintin Robinson

Reputation: 82325

You might not have IIS setup properly on the local machine, I would verify your IIS configuration before continuing. You can always create a website or webapplication that runs through cassini instead and provide a folder path vs a IIS path.

P.S. Even if you are a machine administrator, with vista if the access restrictions are on you must still always specify that you wish to run the application under an administrator context.

Upvotes: 0

Related Questions