Steps to Change from Visual Studio Development Server to Use IIS Web Server

Using Visual Studio 2005

 1. Goto Project Properties > Select Web Tab

2. Click “Use IIS Web Server” radio button

3. Click on “Create Virtual Directory” button

4. Open Web.config and change debug to true  <compilation debug=”true”>

5. Open IIS (Start > Run > Inetmgr)

6. Goto that your project Virtual Directory

7. Right click > Select Properties

8. Under Virutal Directory Tab, make sure it has Application Name.  If its blank, click on Remove button next to it and click Create.

9. Under ASP.Net tab make sure Asp.net Version is 2.0 or whatever you need

10. Under Directory Security tab click EDIT

11. Make sure Anonymous and Integrated Windows authentication is enabled.
If these steps are not followed

you may not be able to debug you application using Visual Studio,

you may not be able to use IIS web server or its features.

4 thoughts on “Steps to Change from Visual Studio Development Server to Use IIS Web Server

  • February 14, 2008 at 12:16 pm
    Permalink

    In my situation I am running on Vista. I had the same issue not being able to debug ASP.NET apps, and read your resolution. During my attempt to make the changes you suggested, VS told me that in order to switch to using IIS, I had to run VS wiith Administrator privileges, so I changed set my VS shortcut to ‘Run as Administrator’. Leaving VS as is (continuion to run under the VD Development Server, not changing to use IIS), I was able to debug my application. Vista can be a real PITA !!!

    Lonnie

    Reply
  • February 14, 2008 at 12:25 pm
    Permalink

    Just for debugging the application you dont have to switch to IIS. That can be done with VS development engine itself. I think its VS2005 feature more than Vista.

    I feel creating an application is better because,

    It helps in simulating the production environment,

    The library output is just one DLL.

    Relative reference to images works the same way in development as well as production.

    Reply
  • February 11, 2009 at 6:25 pm
    Permalink

    When I click the button “Use IIS Web Server,” type in teh url of the web application (on a remote development server), and attempt to open with the browser, I get “Could not find the server http:\\DevServer\Proj1 on teh local machine” Also, the “Use IIS Web Serer” radio button clears and the “Use Visual Studio Development Server” is automatically set. For some reason, my VS2005 doesn’t want me to open my solution on a remote server…..Any ideas?

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: