Here’s a quick tip that will help you leave Cassini in the past where it belongs. If you’re 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 you’ve 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 project’s properties:
That’s great, but it’s annoying to have to do for every new project you create. The good news that it’s 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 don’t let the menu’s name throw you off.
That’s it. Check the box, and enjoy a Cassini-free development environment from this point forward. Except on your other machines, where you’ll have to set this setting again. Oh, and next time you reinstall Visual Studio – you’ll have to set it again then, too. Y’know, wouldn’t it be cool if Visual Studio would remember your settings in the cloud for you? I’ve only been asking for that since like 2003. Maybe now that remember users’ settings is getting baked into Windows 8 it’ll be closer to a reality for Visual Studio. I can dream…