Mike Irving - Macclesfield Web Developer

How to configure IIS Websites in Visual Studio 2005 on Vista

Mike Irving - Macclesfield Web Developer image 1 Mike Irving - Macclesfield Web Developer image 2

News Section - How to configure IIS Websites in Visual Studio 2005 on Vista

Developer Blog from Mike Irving - How to configure IIS Websites in Visual Studio 2005 on Vista

5/6/2008 - How to configure IIS Websites in Visual Studio 2005 on Vista

Earlier this week I tried importing a Local IIS website in Visual Studio 2005 on my new Windows Vista PC.

Interestingly, if I clicked "Open Website" then clicked the "Local IIS" option, I received the following error, as opposed to receiving a list of available IIS websites:

"Unable to access IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine."

Instead, I opened the project from Source Control, and everything seemed to load ok. However, I couldn't build the project, doing so gave the following error:

"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."

A quick search on Google revealed the above error is in relation to not having the Virtual Directory set up as an application, as the error states. However, my Virtual directories were fine, infact IIS was already serving a previous build of the website.

Further digging revealed that the solution was to do with the way Visual Studio 2005 interacts with IIS.

In order to allow Visual Studio to have access to IIS 7.0, you have to enable an IIS 6.0 Compatability Mode in Vista.

To do this, follow the following steps:

  1. Goto Control Panel
  2. In the bottom left margin, click "Turn Windows features on or off"
  3. Expand "Internet Information Services"
  4. Expand "Web Management Tools"
  5. Select "IIS 6 Management Compatibility" and all sub-options
  6. Click "OK" to Apply

I then installed .Net Framework 3.5, which includes updates for Framework 1.1 and Framework 2.0 in Vista.

Following that, I removed my website from IIS, and went back into Visual Studio 2005....

I clicked "Open Website" then the "Source Control" tab. I opened the relevant project from Visual Source Safe, then clicked the "Run as IIS Web site" option.

All is now fine and dandy!


View Blog Entries - Page: 1, 2, 3, 4, 5, 6
Previous Blog Entries
27
May
2008
What can users find in Google under your company name?
When typing your Business names into Google, it is likely that your website will show up first. This will be acheived with only basic SEO implementation, especially if your company name is unique, and...

Read This Blog Entry
13
May
2008
Website embedded video player
I have this evening implemented a Flash based video player solution to the Mr Methane website. Last week a re-skin was applied to the website, breathing new life into the highly popular entertainer...

Read This Blog Entry
01
May
2008
IIS 7.0 on Vista, Some Tips
Around 6 weeks ago I got a new PC at work, running Windows Vista and Office 2007. I must say that I'm impressed by both. After the initial shock of the new UI, you soon begin to unlock the power of...

Read This Blog Entry
View All Blog Entries

Mike Irving (mikeirvingweb) on Twitter
My latest Tweet on Twitter...

Follow Me on Twitter

Bookmark this web page:
© 2010 Mike Irving Web Design Macclesfield