Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 261
eKek0 Avatar asked Mar 07 '09 19:03

eKek0


3 Answers

  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.

like image 130
Shawn Avatar answered Oct 27 '22 07:10

Shawn


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

like image 42
baretta Avatar answered Oct 27 '22 06:10

baretta


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.

like image 41
eKek0 Avatar answered Oct 27 '22 07:10

eKek0