Make IIS Express the Default for VS2010 Web Projects

Posted by: Steven Smith, on 19 Mar 2012 | View original | Bookmarked: 0 time(s)

Heres a quick tip that will help you leave Cassini in the past where it belongs.  If youre using VS2010 SP1, you can configure your IDE so that it will automatically choose IIS Express out of the box for new web sites and projects.  There are a lot of good reasons why you should be using IIS Express instead of Cassini / WebDevServer you can learn more about IIS Express here.  Unfortunately, Cassini remains the default web server for new web projects in VS2010 (unless you change it).

To configure an individual web project to use IIS Express after youve created it, simply right click on the project in Solution Explorer and choose the Use IIS Express option.  You can also configure it in the Web tab of the projects properties:

image

Thats great, but its annoying to have to do for every new project you create.  The good news that its pretty easy to make IIS Express the default.  Thanks to Damian Edwards for pointing this setting out to me.  You can go to Tools-Options-Projects and Solutions-Web Projects and check a box there to make IIS Express the default.  Note that this setting will work for web sites as well as web projects, so dont let the menus name throw you off.

SNAGHTMLb168417

Thats it.  Check the box, and enjoy a Cassini-free development environment from this point forward.  Except on your other machines, where youll have to set this setting again.  Oh, and next time you reinstall Visual Studio youll have to set it again then, too.  Yknow, wouldnt it be cool if Visual Studio would remember your settings in the cloud for you?  Ive only been asking for that since like 2003.  Maybe now that remember users settings is getting baked into Windows 8 itll be closer to a reality for Visual Studio.  I can dream


Category: IIS | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 971 | Hits: 10

Similar Posts

  • Announcing Microsoft Ajax Library (Preview 6) and the Microsoft Ajax Minifier more
  • Web Deployment Tool released to web (RTW) more
  • Announcing the WebsiteSpark Program more
  • Clean Web.Config Files (VS 2010 and .NET 4.0 Series) more
  • Visual Studio Add-In vs. Integration Package Part 1 more
  • Business Apps Example for Silverlight 3 RTM and .NET RIA Services July Update: Part 22: Separate Solution Files more
  • Put Your Views (and Pages) On a Diet more
  • Building Silverlight 2 and 3 applications with Visual Studio 2008 more
  • Using SSL in your application more
  • VS2010 Beta 1 - It's Better on Metal more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD