tags:

views:

68

answers:

2

When developing WebForms web site, I start my project once, Cassini loads and stays loaded until I kill it. Therefore, when I change something (it recompiles in background), and refresh in browser is all it takes to see the changes.

But with MVC, I have to start debugging every time because Cassini is not responding to requests if debugging is not running.

Is it possible to get the same Cassini behavior in MVC as in WebForms?

A: 

It isn't usual for this behaviour, even when developing MVC websites. I am able to make changes to non-compiled stuff (aspx,ascx) etc and it'll take effect immediately on refresh. Changing classes will require you to stop debugging so that you can re-compile, and allow breakpoints to work correctly.

Also, whilst isn't strictly an answer to your question, you should strongly consider moving away from the baked-in Cassini web server used when debugging.

For more information on my general hatred of Cassini, please read this previous question.

If you're unable to either install IIS on your machine (because it might be XP Home or whatever), then you should consider either upgrading to XP Professional (where you are limited to running one website only), or Windows Vista, or Windows 7 RC where you can use IIS7 and all the greatness that it provides.

If you can't do any of those, you should consider trying an alternative, such as Ultidev.

Dan Atkinson
I'm running VS2008 on Windows 2003 server virtual machine. This question of mine http://stackoverflow.com/questions/1057805/asp-net-mvc-debugging-on-iis6 is also the reason for using Cassini. Maybe I should move my develpment to Windows Server 2008 to take advantage of IIS7.
Vnuk
I must agree - Ultidev is the way to go here. Minimal changes to the development setup.
Vnuk
It is something I am using on my XP Pro setup and, although it's no IIS 7, it's definitely the next best thing for machines that can't run it (until Apache have a decent replacement to Mod_AspDotNet). Glad to help!
Dan Atkinson
A: 

I think I found the solution - the trick is to Run project wihout debugging. There is no item for it in Build menu, but keyboard shortcut works (Ctrl+F5 in Visual Basic keyboard scheme).

Cassini starts and remains responsive regardless of debug mode.

Vnuk