fooberry

Sweetness without context.

Visual Studio 2010 Cassini IIS Deltas

October 27th 2009

Weve recently upgraded to the shiny new Visual Studio 2010 Beta 2. With the go live license we hope we can transition to the RTM once it drops. It has some nice features everyone already knows about.

First step to the future, the conversion. The conversion went pretty smooth. It doesnt like the MVC 1.0 project, but thats OK since it was just a shell placeholder. We plan on converting that to the MVC 2.0 before we get any real work in there.

After fixing a few minor things the conversion wizard missed, we fire up the app in Cassini.and it looks awful.image

OK, well maybe it doesnt look awful, but it doesnt look how our talented designers want it to look. It is mostly there. That bottom block should appear to the right of the login. Fire up the same VS 2010 project in IIS and it looks fine. image

Weird huh? Looking at the HTML there are a few differences between the two, but none that we would really expect to cause the two to render differently. Some URLs were changed to absolute URLs and include the hostname and port of each site. There are some view state differences, but nothing else.  HmmWhy dont we just stop using Cassini and debug through IIS.

There were just a few steps needed to set that up. First, tell Visual Studio to use a different server besides the development server.

image

Here weve already setup a host header IIS site and added dev.mysite.localhost do the hosts file. We have a hybrid of ASP.Net and classic ASP, so we already used ISS for a lot of testing.

Second step, run Visual Studio as administrator. You can default the shortcut to always run as administrator by editing the advanced properties of the shortcut.

image

Thats it. It looks like Visual Studio automatically attaches to the IIS process. The best part; It is a worlds faster than Cassini. I dont know why you would debug through Cassini, unless you had to because you were missing either administrator privileges or missing IIS with your Home version of Windows.

blog comments powered by Disqus