Hi everybody,
We have a problem regarding an registered IHttpHandlerFactory not working wiht Urls with aspx extension.
This is our config.entry:
<
httpHandlers>
<remove verb="*" path="factory.ashx" />
<add verb="*" path="factory.ashx" type="TestApplication.HandlerFactory" />
</httpHandlers>
This is an
IHttpHandlerFactory which assigns the appropriate IHttpHandler (our own) for the request processing regarding certain Url stuff.
An Url for that could/would look like:
http://localhost/factory.ashx/folder/document.aspx
*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.
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.
In IIS this has stopped working!
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.
Does anybody have an idea, how to solve that (by certain settings either in IIS website or in web.config)?!
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.
best regards
H.Polenz