15 Apr 2008 Chicago   » (Journeyer)

Visual Studio, HttpModules and compiling for IIS6

Things are becoming a little tricky. Because Windows 2008 has only just been released, the migration to that is going to be relatively slow (I can't realistically suggest that we have our production server as a 2008 box ... yet). So we're stuck with using Windows 2003 and IIS6 for our .Net hosting.

However, we're programming on Vista boxes, which of course, are running IIS7 and all its finery. Now, having a test platform which is a different version to the deployment platform is never a good idea, and right now, its a royal pain in the ass. And why? Well, randomly, the way I add headers:

Good

response.AddHeader("Content-type", "text/html");

Bad

response.Headers.Add("Content-type", "text/html");

The first one works, the second one ...

System.PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.
   at System.Web.HttpResponse.get_Headers()
   at ...

Go figure.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!