Wildcard Application Mapping for URL Rewriting in IIS 6.0

aspnet While working on getting a new project ready for publishing to the Internet. I discovered that when you are working with the built-in web server that comes with Visual Studio that it processes all requests through the ASP.NET isapi dll.  Which works great when you are working with url rewriting.

The issue comes about when you move to a production environment with IIS.  Most production environments do not do all their processing through the ASP.NET isapi dll.  Most shared hosting environments would not be accommodating of such a request either because it could cause interference with other running applications on the host server.  But for most people that host their own applications it can be quickly solved with the following.

IIS Management Console

First off we need to launch the IIS Management Console. Once the window is open we need to find the web site that we want to allow to have wild card mapping enabled on and go to the properties for the web site.

Once we have the properties open then we need to click on the Home Directory for the application. This will allow us to click on the Application Configuration button. In the window that opens the bottom half of the form allows us to define Wildcard application maps.  We need to click on the Insert button which will then allow us to enter the path to file that we want to process requests.  In this case the file is c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll.  We then have the option of checking that the file exists.  This should be turned off for the most part as most of the files that will be processed may not actually exist on the server itself but virtually.  Once we have this completed all of this. We can click all the OK button's and close out the IIS management console.

del.icio.us Tags: , ,

Technorati Tags: , ,

kick it on DotNetKicks.com

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Posted on 1/14/2008 9:50:39 AM by admin

Permalink | Comments (2) | Post RSSRSS comment feed |

Categories: ASP.NET | IIS | Programming

Tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

January 14. 2008 11:32

Will Sullivan

I had a similar post on my blog. The thing that most people who use url rewriting miss that causes such havoc is that little checkbox on the wildcard mapping dialog. If you have "Check that the file exists" checked, wildcard mapping will fail. It checks to see if the requested resource (aka webpage/image/whatever) exists/can be accessed by the request principal (security check) before passing the request on to the isapi filter, not whether or not the isapi filter exists. That simple distinction was lost on me, which caused me lots of aggravation.

Will Sullivan us

January 14. 2008 13:19

Sam MacDonald

Will - IIS has many quirks, and every version introduces a lot of new features. I've been working with IIS since the very early versions, and have used it for most of my web development over the years. Sometimes I forget to include things and since starting this blog i've tried to make sure I document all the things I run across over my work on clients sites as well as on my own sites that I work with on the internet.

Sam MacDonald ca

Comments are closed