Tuesday, March 23, 2010

Debug in VS2008 with local IIS server on Vista pc

For one of my projects I have to use a Vista pc with VS2008 to develop a website and webservices. I want to use the local IIS server instead of the Visual Studio Development Server to debug my project.
Steps to be taken:
  1. In visual studio, go to the properties of your website project. From the diffferent tabs (Application, compile,...) choose Web.
  2. Under 'Servers', select 'Use local IIS server'.
  3. the default project url is http://localhost/myproject . Click the 'Create virtual directory' button.
  4. This message pops up : you need to install the "IIS Metabase and IIS6 Configuration Compatibility" feature under Internet Information Services-Web Management Tools-IIS 6 Management Capability to get the IIS6 ADSI provider installed.It means that IIS is not installed or not fully configured on this pc.
  5. Close Visual Studio
  6. Open Configuration panel , select Add/Remove programs. On the left you have a link to 'Turn Windows features on or off'. Click this link.
  7. In the dialog box scroll to 'Internet Information services' / 'Web management and enable 'IIS Metabase and IIS6 Configuration Compatibility'.
  8. Next you need to enable ASP.NET under the same 'Internet Information services' select Developer functions and check ASP.NET.
  9. Click OK. this will take some minutes.
  10. Open the visula studio project again and in the Web properties, click on the Create Virtual Directory. this should work now.


No comments: