Sunday, April 3, 2011

Setup IIS in localhost as web development server

How can I setup IIS 5.1 in Visual Studio 2008 as my web development server? I'm using Win XP, and I was using Cassini, but I want to give a tray to IIS instead of.

From stackoverflow
    1. Go into Control Panel -> add remove programs -> enable / disable windows features, find IIS and install it.

    2. Go to Start -> Accessories -> Administrative tools -> IIS Manager

    3. Right click websites, add a new website, point the home directory to the root of your site.

    4. Open up localhost

    5. ????

    6. Profit!

    You might have to attach Visual Studio to the ASP.NET worker process to debug.

  • It's in the web project's property pages, under Web->Servers->"Use local IIS web server"

    Shawn Simon : nice, didn't know about this one ;p
  • To attach Visual Studio to the ASP.NET worker proccess to debug go to menu Tools\Attach to Proccess or press CTRL + ALT + P and select aspnet_wp.exe or w3wp.exe.

    More information here.

0 comments:

Post a Comment