Navigation


Markus on Development and Publishing

This is Markus Egger's professional blog, which covers topics such as development, publishing, and business in general. As the publisher of CoDe and CoDe Focus magazines, and as the President and Chief Software Architect of EPS Software Corp., Markus shares his insights and opinions on this blog.

Content Area Footer

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 (95)


 

 

 

 

 

 

 

Syndication RSS 2.0 RSS 2.0

All My Blogs:
My personal blogs:
Dev and Publishing Dev and Publishing
Travel and Internat. Living Travel and Internat. Living
Other blogs I contribute to:
Milos Blog (US) Milos Blog (US)
VFPConv. Dev Blog (US) VFPConv. Dev Blog (US)
VFPConv. Dev Blog (DE) VFPConv. Dev Blog (DE)

 

Blog Archives
All Blog Posts

2015
    September (1)
2012
    September (1)
    April (1)
    March (1)
2011
    October (1)
    June (3)
    May (1)
    March (2)
    February (2)
    January (2)
2010
    December (3)
    November (2)
    October (2)
    September (1)
    August (2)
    July (1)
    June (1)
    April (3)
    March (1)
    February (5)
    January (1)
2009
    October (4)
    September (2)
    August (1)
    July (1)
    May (4)
    April (6)
    February (1)
    January (1)
2008
    December (3)
    November (11)
    October (8)
    September (1)
    July (1)
    June (3)
    May (3)
    April (6)
    March (6)
    February (4)
2007
    December (1)
    November (1)
    October (5)
    September (1)
    August (1)
    July (6)
    June (3)
    May (3)
    April (1)
    March (2)
    January (2)
2006
    December (3)
    November (4)
    October (1)
    September (2)
    August (2)
    July (4)
    June (1)
    May (2)
    April (10)
    March (2)
    February (3)
    January (1)
2005
    December (6)
    November (7)
    October (6)
    September (8)
    August (10)
    July (6)
    June (9)

 

 

 

This Blog is powered by MilosTM Collaboration Components.