Last post Feb 06, 2007 10:52 PM by mbanavige
Feb 05, 2007 03:52 PM|almargob|LINK
I wrote code for an HttpHandler to handle requests to files of type *.hth. It works fine in the debug mode but when I deploy my files to the server or the local server it ignores the handler. I registered the handler in the web.config file.
<add verb ="*" path=".hth" type="httpExt.SimpleHandler, httpExt" />
if this doesn't work pls give me any other way that works.
Feb 05, 2007 06:59 PM|vcsjones|LINK
Feb 05, 2007 08:31 PM|almargob|LINK
Thanks but I did that and it didn't work. It works only on the debug mode. Any Ideas?
Feb 06, 2007 10:52 PM|mbanavige|LINK
did you actually map it in iis or did you just add the extension to your web.config? you need to do both.
by default, Cassini handles all requests regardless of the extension which is why it would work when debugging. on the other hand, IIS only maps requests for specific file extensions to the aspnet_isapi.dll.
usually, you would use the .ashx extension when calling a handler as the .ashx extension has already been mapped to go to asp.net. If you've decided to use an alternate extension, then you will need to configure IIS to map that extension to asp.net
this article explains a little more: