HowTo: Setup IIS7 as development server in Visual Studio 2008

image_thumb3Webdevelopment with Visual Studio is really easy – just hit F5 and you jump into the debugger. VS use (as default) the built-in "ASP.NET Development Server" called "Cassini". But there are some pitfalls if you use this server, because the behavior of the IIS and Cassini are sometimes a bit different and the dev server is much slower! The good news: With few clicks you can debug and deploy your application right on IIS7 (on Vista/Server 2008).

Setup IIS
If you develop under Windows Vista (I have only a german Vista here – sorry)you can use the IIS7 – Win XP users have to use IIS6 (which I will not cover in this blogpost, but the way should be similar).

1. Install IIS 7
System Control -> Programs -> Windows Functions:

If you have not installed IIS7 click on the IIS-service checkbox:

image_thumb6

Important for us are the following settings: Add the ASP.NET Feature:

image_thumb9

… and for the Visual Studio "integration" you have to install these features:

image_thumb13 

image_thumb15

2. Edit Visual Studio Project

*right click* on the project and go to the properties:

image_thumb17

Save these settings and now hit F5 – done :)

Pros- & Cons about using IIS instead of Cassini
I recommand using IIS instead of Cassini, because it´s much faster and it´s more like the real deployment server. Look at these two questions on stackoverflow.com to see what other developers think about it: this link or this link.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

About the author

Written by Code Inside Team

Currently there is no additional info about this author.

4 Responses

  1. Super. Nice guide. Solved all my issues in 2 secs! I just had to translate your german version into english :-)

    Reply
  2. Nice, BUT, you can’t use Edit & Continue debuggin when you’ve attached to IIS. Microsoft should allow running IIS as a hosted process so Visual Studio can enable Edit & Continue…

    Reply
  3. Really appreciate it. Been banging my head with this for a while. Seems like there is a great difference between “Web Project” and “Website”

    Reply

Comment on this post

Recent Posts

  • image1528-570x194_thumb.png
    Introduction to Redis on Windows & Redis usage with .NET

      Redis belongs to the NoSQL data banks and you will find it in the group of Key-Value Stores. Redis is often named “Blazing Fast” and according to the Stackoverflow Thread it is used to be two time (while writing) and three times (while reading) quicker than MongoDB. Even if the comparison is a little ...

  • Automated Security Analyser for ASP.NET websites

    Evil Hackers are lurking everywhere and many Web-applications are delicately and share “too much” with the attacker. A quick (first!) overview offers the Tool “ASafaWeb”. All the website does is making a few requests and writing an Analyses including problem solving’s. There are no permanent disadvantages (bad requests/ DoS attacks and so on). Example: KnowYourStack.com ...

  • image1489-570x194.png
    „Sign in with Twitter“ for your own ASP.NET WebApp

      “Sign in with Twitter” is a popular practice to authenticate the users on your website. One advantage compared to an own registration is the lower inhibition for the user. But on the other hand Twitter doesn’t fess up with all the information’s and you will get into a kind of addiction. At the end ...

  • image1485-570x194_thumb.png
    CodePlex is going to be updated

      CodePlex the Microsoft Open Source Project Hosting Plattform hasn’t changed that much in the last few years and for a few times I thought Microsoft stopped the whole developing process. But now I found out that there is still life in the project. Maybe it is because of the success of GitHub or because ...

  • image1474_thumb.png
    What does Adobe in the flash-free web? Magazine-Style Layouts with CSS Regions!

      Adobe is well known for Photoshop and Flash but of course there is a lot more. According to the “Future Post” from Google Adobe declared one of their big subjects on a Blogpost. I’m talking about the W3C Working Draft to CSS Regions. Adobe cooperates with the WebKit Team and W3C on this. What ...

Support us