<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx</link><description>Users frequently configure ISAPIs like ASPNET_ISAPI.DLL as a wildcard application mapping on IIS6 to route all requests into ASP.Net for processing (for example, to apply ASP.Net Forms authentication onto non-ASP.Net resources like a JPG or HTML). However,</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx#560020</link><pubDate>Fri, 24 Mar 2006 18:59:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:560020</guid><dc:creator>DAvid </dc:creator><description>Ok, thats the problem any ideas on the fix ?</description></item><item><title>re: Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx#560223</link><pubDate>Fri, 24 Mar 2006 22:11:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:560223</guid><dc:creator>David.Wang</dc:creator><description>David - I presume you are referring to ASP.Net 1.1. Since the behavior is by-design, there is really nothing to &amp;quot;fix&amp;quot;.&lt;br&gt;&lt;br&gt;For example, you may try to configure ASPNET_ISAPI.DLL to be an ISAPI Filter (even though it isn't an ISAPI Filter) and find that IIS6 now returns 503. Since ASPNET_ISAPI.DLL is not an ISAPI Filter, the behavior is by-design and there is nothing to &amp;quot;fix&amp;quot;.&lt;br&gt;&lt;br&gt;Similarly, you may try to configure ASPNET_ISAPI.DLL to be a wildcard application mapping (even though it was never written to be one) and find that some URL processing does not work correctly on IIS6. Since ASPNET_ISAPI is never written to be a Wildcard application mapping, the behavior is by-design and there is nothing to &amp;quot;fix&amp;quot;.&lt;br&gt;&lt;br&gt;If you are asking for a &amp;quot;work-around&amp;quot; - as URLs in the blog entry show, since ASPNET_ISAPI.DLL is unable to hand the request back to IIS for DefaultDocument resolution, that resolution has to happen somewhere else. Some people have added hard-coded redirections into their HttpModules to identify these DefaultDocument redirections and handle it, but it is certainly not the only way. You've got the details now; figure it out.&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx#560360</link><pubDate>Sat, 25 Mar 2006 00:30:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:560360</guid><dc:creator>David </dc:creator><description>Hi,&lt;br&gt;&lt;br&gt;I think i typed it more in hope than in anything else. Im not a boffin im afraid. I do know that I did not knowingly install anything to bring about this problem on the server e.g no application mapping or what not. I have uninstalled iis and re installed it etc. but im left with the same problem. I think my symptoms are the same but the problem is different. &lt;br&gt;&lt;br&gt;Thank you .&lt;br&gt;&lt;br&gt;David </description></item><item><title>re: Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx#560383</link><pubDate>Sat, 25 Mar 2006 01:04:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:560383</guid><dc:creator>David.Wang</dc:creator><description>David - the key message is that you should not ask for a &amp;quot;fix&amp;quot; for something that is not broken. And you need to describe your problem thoroughly if you need assistance.&lt;br&gt;&lt;br&gt;What is described here is not default behavior. So, you have either knowingly or unknowingly made a server configuration change to result in this state. Possibilities include:&lt;br&gt;1. Custom ISAPI Filter&lt;br&gt;2. Custom ISAPI Extension configured as Wildcard Application Mapping&lt;br&gt;3. Misconfigured IIS HttpRedirection&lt;br&gt;4. global.asa or global.asax with misconfigured HTTP Redirection&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx#610053</link><pubDate>Mon, 29 May 2006 15:37:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:610053</guid><dc:creator>Scott</dc:creator><description>Fix or no fix many applications rely on the ability to send all requests to asp.net where they're processed. While its not recommended or supported it very neccessary and since its changed it means that migrating applications from 1.1 to 2.0 is taking far longer than hoped.&lt;br&gt;&lt;br&gt;For me the requirements were:&lt;br&gt; o) Have 2 web apps&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://mainapp/"&gt;http://mainapp/&lt;/a&gt; &amp;nbsp; &lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://mainapp/"&gt;http://mainapp/&lt;/a&gt;subapp&lt;br&gt; o) Configure subapp with wildcard to pass all requests to asp.net&lt;br&gt; o) Add handler mapping to webapp's web.config&lt;br&gt;&amp;lt;httpHandlers&amp;gt;&lt;br&gt; &amp;nbsp;&amp;lt;add verb=&amp;quot;*&amp;quot; path=&amp;quot;*&amp;quot; type=&amp;quot;MyBrowseHandler, Application&amp;quot; /&amp;gt;&lt;br&gt;&amp;lt;/httpHandlers&amp;gt;&lt;br&gt; o) Add handler code to redirect as required.&lt;br&gt;&lt;br&gt;None of the files or directories that are called exist and all the responses are generated on the fly.&lt;br&gt;&lt;br&gt;This is a fundamental requirement for my application but to do this now is difficult bordering on impossible.&lt;br&gt;&lt;br&gt;I've tried to configure this for the subapp but it is still passing back 404 errors.&lt;br&gt;&lt;br&gt;IIS 6.0 does not serve unknown MIME types&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/?id=326965"&gt;http://support.microsoft.com/?id=326965&lt;/a&gt;&lt;br&gt;&lt;br&gt;Any help or suggestions are most appreciated.&lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;Frustrated Developer trying to convert applications from ASP.Net 1.1 to 2.0 &lt;br&gt;&lt;br&gt;</description></item><item><title>re: Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx#622918</link><pubDate>Fri, 09 Jun 2006 01:07:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:622918</guid><dc:creator>David.Wang</dc:creator><description>Scott - What you are describing is a common failure pattern for users that configured ASP.Net 1.1 as a wildcard application mapping and then upgrade to ASP.Net 2.0 on IIS6.&lt;br&gt;&lt;br&gt;In the near future, I will be posting a blog entry about:&lt;br&gt;1. What is actually going on&lt;br&gt;2. Why it broke on upgrade&lt;br&gt;3. How to do the necessary configuration to get similar behavior&lt;br&gt;&lt;br&gt;Since this is ultimately not an officially supported scenario of ASP.Net 1.1 and ASP.Net 2.0, you will find that things will again break when you upgrade from IIS6 to IIS7. I can only suggest that you learn and understand what is actually going on... which is what I am going to blog. :-)&lt;br&gt;&lt;br&gt;//David</description></item><item><title>re: Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx#6415231</link><pubDate>Tue, 20 Nov 2007 03:35:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6415231</guid><dc:creator>Nathan Ridley</dc:creator><description>&lt;p&gt;@John and Joel&lt;/p&gt;
&lt;p&gt;Set your web application to have a wildcard mapping as per usual. Then for your images directory (and whatever other directory you want), in IIS make that folder a virtual directory via the 'Create Application' button in the 'Home Directory' tab. Then click 'Configuration' and remove the wildcard mapping. The change will apply only to that virtual directory and not the root web application, thus causing all requests in that directory to get processed normally.&lt;/p&gt;
</description></item><item><title>re: Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx#8875267</link><pubDate>Sun, 17 Aug 2008 22:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8875267</guid><dc:creator>John Bailo</dc:creator><description>&lt;p&gt;I am having a problem setting up a wildcard mapping for a Web Site.&lt;/p&gt;
&lt;p&gt;I can set it up (aspnet_isapi.dll) for a virtual directory, but when I configure it for a Web Site, the mapping doesn't fire (I get a page not found, 404 error, when it should be running my URLRewrite HttpModule).&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
</description></item><item><title>re: Why Wildcard application mapping can disable Default Document resolution</title><link>http://blogs.msdn.com/david.wang/archive/2005/10/15/Why-Wildcard-application-mapping-can-disable-Default-Document-resolution.aspx#8875368</link><pubDate>Sun, 17 Aug 2008 23:11:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8875368</guid><dc:creator>David.Wang</dc:creator><description>&lt;p&gt;John - You most likely have custom ScriptMaps set on virtual directories themselves which will override any ScriptMaps (including wildcard) set at the Web Site level.&lt;/p&gt;
&lt;p&gt;In other words, global wildcard application mapping works... unless a virtual directory redefines its Application Mapping such that it does not contain that wildcard application mapping.&lt;/p&gt;
&lt;p&gt;//David&lt;/p&gt;
</description></item></channel></rss>