Developing with Visual Studio 2005 on Windows Vista

August 9, 2006

I encountered a few issues when starting to develop on Windows Vista. I had my whole enviornment setup and I decided to write a quick little asp.net app and test it out….Once I hit F5 in studio – I got a msgbox:

Unable to cast object of type ‘System.Web.HttpDebugHandler’ to type ‘System.Web.HttpApplication’.

————————————————

 

Unable to start debugging on the web server.  

[InvalidCastException]: Unable to cast object of type ‘System.Web.HttpDebugHandler’ to type ‘System.Web.HttpApplication’.   at System.Web.Hosting.PipelineRuntime.ExecuteStateHandler(IntPtr& managedRequestContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

So I figured it was probably something to do with the new Integrated mode in IIS and VS2005 has no clue about it. So I moved the app to a new Application Pool in IIS7 that runs in ISAPI mode and now everything works!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: