2

I remember attempting to use an extension-less URL format in a CMS I wrote way back when .NET 2.0 first came out. The problem was deploying to an IIS6 server. It made it practically impossible. I had to programmatically create folders for the path (tons of folders) and insert a dummy "Default.aspx" in there to get the request routed to ASP.NET. Of course, I hated that "solution" and had to abandon using extension-less URLs.

Now that I am getting started with ASP.NET MVC, I again want (need) to use extension-less URLs. Can somebody tell me if I am going to have the same headaches when I try to deploy my app to IIS6? Is anything special required to get this type of URL structure to work in IIS6?

2 Answers 2

3

Extension-less URLs are possible with IIS 6, but it requires setting up a "wildcard" ISAPI mapping in the site's Application Config. This has the downside of causing all requests to get processed by the ASP.NET ISAPI filter including static files like images, javascript, etc.

Here is an excellent blog post from Phil Haack about the different options for setting up ASP.NET MVC on IIS 6. The wildcard instructions are about halfway down.

2
  • Yeah there are definitely performance implications with passing all requests to aspnet_isapi.dll. Crap. If Windows Server 2008 was not so damn expensive, I would upgrade! Jan 7, 2010 at 16:28
  • Looking at the comments, it appears like there are other issues that spring up as well. And most of them Dr. Phil does not even respond to! Jan 7, 2010 at 16:30
1

Note that wildcard ISAPI mappings are no longer required as of .NET 4.0: Link

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .