views:

696

answers:

3

I noticed that asp.net 4.0 now installs a top-level isapi plugin (in iis6), such that it can inspect every request coming to the server. Should this now allow us to run MVC applications with extensionless URLS and have the aspnet isapi process them correctly without requiring the wildcard mapping (and avoid the performance penalties associated)? I havent found anything written about this yet, and havent had time to investigate. Thanks

+2  A: 

ASP.NET 4.0 installs the C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll ISAPI filter in order to map incoming request to the new CLR, but this filter is not registered as wildcard mapping but is associated only with known extensions. It does not intercept every incoming request. If you want to have extensionless urls you will need to perform the same steps as for ASP.NET 2.0 but use the new ISAPI filter instead.

Darin Dimitrov
Darin, this is different from the Isapi filter I am seeing, however I think the one I see is only used for "extensionless url's"... and not really what I'm after. What I'm seeing is mapped to C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_filter.dllI suspect this is intalled in iis6 to try to emulate some missing iis7 functionality. Any ideas?
boomhauer
+1  A: 

found the answer: http://blogs.msdn.com/b/tmarq/archive/2010/06/18/how-to-disable-the-asp-net-v4-0-extensionless-url-feature-on-iis-6-0.aspx

appears that there are new features in asp.net 4.0 that enable extensionless urls. I need to do more research on this to find out how to utilize it.

Basically it appends /eurl.axd/GUID to each routed request, which then gets passed to aspnet_isapi.dll to be processed. the eurl.axd is then removed at this point.

The problems Im having is how these interact between my Ionics rewriter IIRF software and this new .net rewriting... they seem to be interfereing with each other at times.

boomhauer
A: 

Could you please check this page about removing the eurl.axd and i tested, it worked! http://www.helicontech.com/forum/15029-ASPNET_40_MVC_and_ISAPI_Rewrite_3.html

Barbaros Alp
@Barbaros, yes it works and I am using that right now. I wish the URL rewriter was smarter so it wouldnt need to be turned off though.
boomhauer