<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'IHttpHandlerFactory'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=IHttpHandlerFactory&amp;orTags=0</link><description>Search results matching tag 'IHttpHandlerFactory'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IHttpHandlerFactory not working with url extension *.aspx</title><link>http://forums.iis.net/p/1086857/1620003.aspx#1620003</link><pubDate>Wed, 14 Mar 2007 13:35:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1620003</guid><dc:creator>hp_powernodes</dc:creator><cs:applicationKey>iis7_-_known_issues_and_workarounds--1</cs:applicationKey><description>&lt;P&gt;Hi everybody,&lt;BR&gt;&lt;BR&gt;We have a problem regarding an registered IHttpHandlerFactory not working wiht Urls with aspx extension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This is our config.entry:&amp;nbsp;&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;httpHandlers&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;remove&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;verb&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;*&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;path&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;factory.ashx&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; /&amp;gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;add&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;verb&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;*&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;path&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;factory.ashx&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;type&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;TestApplication.HandlerFactory&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; /&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;httpHandlers&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;This is an&amp;nbsp; &lt;FONT color=#2b91af size=2&gt;IHttpHandlerFactory &lt;/FONT&gt;which assigns the appropriate IHttpHandler (our own) for the request processing regarding certain Url stuff.&lt;/P&gt;
&lt;P&gt;An Url for that could/would look like:&lt;BR&gt;&lt;A href="http://localhost/factory.ashx/folder/document.aspx"&gt;http://localhost/factory.ashx/folder/document.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;*The reason that we add the aspx to our (generated) urls is to provide the right MimeType for any client whch recognizes it by the url extension.&lt;BR&gt;&lt;BR&gt;This worked well with IIS6. Whenever the URl contained the "factory.ashx", the request was send through the IHttpHandlerFactory and then processe by one of our IHttpHandlers.&lt;/P&gt;
&lt;P&gt;In IIS this has stopped working!&lt;BR&gt;As soon as the Url has the "aspx" extension, the request is not send throught the factory anymore, and thus IIS returns 404 because it doesnt find a physical file for that Url.&lt;/P&gt;
&lt;P&gt;Does anybody have an idea, how to solve that (by&amp;nbsp;certain settings either in IIS website or in web.config)?!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwize the only solution would be that we dont add aspx to our Urls. But while we would like to provide an extension, we might need to go to html extension instead.&lt;/P&gt;
&lt;P&gt;best regards&lt;BR&gt;H.Polenz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description></item></channel></rss>