VFPConversionLogo
HomeBlogLearnProductsEventsServicesAbout UsFAQ
Markus Egger's Blog

Tuesday, July 22, 2008
Using the ASP.NET Routing Engine with IIS6 on Win2k3

Today was one of those days where I almost was ready to jump out the window: I have been working long hours on building an ASP.NET web app based on the new routing framework introduced in .NET 3.5 SP1. Everything seemed to be going pretty well, until I deployed the whole app to a Win2k3 server with IIS6. Nothing worked at all!

As it turns out, ASP.NET routing does not work out of the box on IIS6. What you can do however, is add a wildcard script map that forces ASP.NET to process the routed URLs. Here's how you do that:

  1. Open the properties of your web site in IIS6.
  2. Go to the "Home Directory" tab and click "Configuration"
  3. Click the "Insert..." button to add a new *wildcard* application map.
  4. Make the executable the aspnet_isapi DLL as used for the .aspx application extension (copy the whole path from that setting to make your life easy).
  5. Uncheck the "Verify that file exists" checkbox.

And that should do the trick. The downside is that every hit (even images) is now processed by ASP.NET. So on a high-traffic server, that could be a problem.



Posted @ 7:13 PM by Egger, Markus (markus@code-magazine.com) - Comments (4)


Blog List
VFPConversion Blog
Ken Levy's Blog
Claudio Lassala's Blog
Mike Yeager's Blog
Blog Archive
September, 2012 (1)
April, 2012 (1)
March, 2012 (1)
October, 2011 (1)
June, 2011 (3)
May, 2011 (1)
March, 2011 (2)
February, 2011 (2)
January, 2011 (2)
December, 2010 (3)
November, 2010 (2)
October, 2010 (2)
September, 2010 (1)
August, 2010 (2)
July, 2010 (1)
June, 2010 (1)
April, 2010 (3)
March, 2010 (1)
February, 2010 (5)
January, 2010 (1)
October, 2009 (4)
September, 2009 (2)
August, 2009 (1)
July, 2009 (1)
May, 2009 (4)
April, 2009 (6)
February, 2009 (1)
January, 2009 (1)
December, 2008 (3)
November, 2008 (11)
October, 2008 (8)
September, 2008 (1)
July, 2008 (1)
June, 2008 (3)
May, 2008 (3)
April, 2008 (6)
March, 2008 (6)
February, 2008 (4)
December, 2007 (1)
November, 2007 (1)
October, 2007 (5)
September, 2007 (1)
August, 2007 (1)
July, 2007 (6)
June, 2007 (3)
May, 2007 (3)
April, 2007 (1)
March, 2007 (2)
January, 2007 (2)
December, 2006 (3)
November, 2006 (4)
October, 2006 (1)
September, 2006 (2)
August, 2006 (2)
July, 2006 (4)
June, 2006 (1)
May, 2006 (2)
April, 2006 (10)
March, 2006 (2)
February, 2006 (3)
January, 2006 (1)
December, 2005 (6)
November, 2005 (7)
October, 2005 (6)
September, 2005 (8)
August, 2005 (10)
July, 2005 (6)
June, 2005 (9)