HttpHandler 是否需要 aspnet_isapi.dll 映射
如果我配置(通过 web.config)一个 httphandler 来处理特定文件夹的所有 .gif 请求,那么将 .gif 请求映射到 IIS 中的 aspnet_isapi.dll 是否绝对必要?
是否有其他方法可以确保 .gif http 请求将由 aspnet_isapi.dll 处理?
我配置了一台服务器,其中包含 .gif->aspnet_isapi.dll 映射的虚拟目录已被删除,但 .gif 请求仍传递到处理程序。任何人都知道这是如何完成的,以及设置可能隐藏在哪里?
谢谢
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 any 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
映射是必需的,否则 IIS 永远不会将请求发送到 ASP.Net,并且您的处理程序将永远没有机会处理该请求。
据我所知,没有其他方法。您必须在某个时候让 IIS 知道它必须处理该文件类型。
要删除,您可以按照 http://msdn.microsoft.com 中的说明进行操作/en-us/library/bb515343.aspx 但删除而不是添加扩展映射。
另请检查其中是否也没有通配符映射。
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.