开发者

Does an HttpHandler require an aspnet_isapi.dll mapping

If I configure (via web.config) an httphandler to handle all .gif requests for a specific folder, is it absolutely essential for me to map .gif requests to aspnet_isapi.dll in IIS?

Is there a开发者_开发百科ny other way of ensuring that the .gif http request will be handled by aspnet_isapi.dll?

I have a server configured where the virtual dir that contained the .gif->aspnet_isapi.dll mapping has been deleted, but the .gif requests are still being passed to the handler. Anyone know how this might be being done, and where the setting might be lurking?

Thanks


The mapping is required otherwise IIS will never send the request to ASP.Net and your handler will never have a chance to process the request.

There is no other way that I know of. You have to let IIS know at some point that it has to handle the file type.

To remove, you can follow the instructions at http://msdn.microsoft.com/en-us/library/bb515343.aspx but delete rather than add the extension mapping.

Also check that you do not have a wildcard mapping in there as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜