Tuesday, October 26, 2010

How to start the VS2010 dev web server

I often need to keep Visual Studio's (2010) development web server (Cassini) running, while editing the ASPX/CSS or JS files.
Alas, VS2010 stops it when debugging is stopped.

I have created a new entry under Tools, called Start Cassini.

Here are the parameters for it:

Title: Start Cassini

Command: C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\WebDev.WebServer40.EXE

Arguments: /port:2001 /path:"$(ProjectDir)\"

Change the port number to suit your project.

I believe that WebDev.WebServer40.EXE is for dotNET 4.0 projects.
For dotNET 2.0, use WebDev.WebServer20.EXE

ps: Comments and/or links to this article are most welcome!

1 comment:

  1. This is the right blog for anyone who wants to find out about this topic. You realize so much its almost hard to argue with you. You definitely put a new spin on a topic that's been written about for years.