httpHandler 适用于虚拟目录,但不适用于类似配置的网站
我正在建立一个大量使用 httpHandlers 的第三方网站。 当在 2003/IIS6 计算机上的默认站点下配置为虚拟目录时,一切都会按预期工作。 然而,当在同一台计算机上配置为独立站点时,指向相同的目录和 web.config,httpHandlers 不起作用 (404)。
我尝试了对处理程序标签的路径值进行各种更改,但没有结果。 页面本身以及应用程序的代码似乎都在独立站点中执行 find 。
我可能会遗漏任何明显的东西吗?
I am setting up a 3rd party website which makes heavy use of httpHandlers. When configured as a virtual directory under Default Site on a 2003/IIS6 machine, everything works as expected. When configured as a standalone site on the same machine, pointing to the same directory and web.config however, httpHandlers do not work (404).
I have tried various changes to the path values of the handler's tags with no results. The pages themselves, and the application's code, all seem to execute find within the standalone site.
Any obvious things I might be missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了我自己的答案,这是一件非常简单的事情。
安装程序包已安装该站点的虚拟目录版本,并且它已负责添加文件扩展名映射。 独立版是手动配置的,因此我错过了添加映射的过程。
解决。
Found my own answer, was a very simple thing.
An installer package had installed the virtual directory version of the site, and it had taken care of adding the file extension mappings. The standalone was manually configured and as such, I missed adding the mappings.
Resolved.