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

  • image1452_thumb.png
    Javascript to Dart Translator

      Dart, a Google Javascript alternative was presented a few months ago and the web developer scene are a little bit unsure about the usability of Dart. To declare the language Google has translated the Javascript basics into Dart. The result is this “Translator”. In my opinion the name doesn’t find that well because it’s ...

  • image1366-570x194.png
    Twitter Bootstrap as UI-kit

      HTML and CSS are not foreign words for me but I regret, I’m not a Web designer – I see myself as a webdeveloper. But at least a dressy side is a must. But thank good there are some ready “Systems”. Twitter Bootstrap Twitter Bootstrap is a Toolkit for every kind of Web applications. ...

  • image1441.png
    Fix: the value ‚x‘ is not valid for Foo in ASP.NET MVC

      To get files into the MVC Controller Modelbinding from MVC is a clever method. But in fact it is a little bit complicated to set the error message if the connection failed. Example: public class RegisterModel { ... [Required] [DataType(DataType.EmailAddress)] [Display(Name = "Email address")] public string Email { get; set; } [Required] [Display(Name = ...

  • You Tube API – recall Video Meta files with .NET

      A loooong time ago I’ve blogged about how to access to You Tube with the Google Data APIs. After all that time there are several new ways how to recall files. Google offers You Tube a “simple” surface. If you prefer to do low-Level HTTP calls it is also possible. Aim: I want the ...

  • image1426-570x194.png
    MacBook Pro for .NET Developer – useful ore just pretty?

      I own a MacBook Pro (from 2010) for about a year now and because I’ve used to think about this Question since I have it, I’m going to blog about my experience now. My Notebook Configurations MacBook Pro April 2010 - 2,66 Intel Core i7 - 8GB RAM - 15’’ Glossy Display - Intel ...

Support us