IIS 6:启用虚拟路径

发布于 2024-07-17 10:04:33 字数 229 浏览 5 评论 0原文

我开发了一个简单的文件浏览HTTP 模块,它使用虚拟路径(即磁盘上实际不存在的路径)。 该应用程序。 在我的 IIS 7 上运行良好,但在 Win 2003 上,IIS 不会将 HTTP 请求转发到我的 Web 应用程序 - 相反,它只是向浏览器返回“找不到页面”。

如何禁用此默认行为并允许我的 Web. 应用程序。 处理 IIS 6 上的所有请求,无论文件是否实际上是磁盘?

提前致谢

I've developed a simple file browsing HTTP module which uses virtual paths (i.e. paths that do not actually exist on the disk). The app. runs fine on my IIS 7, but on Win 2003 the IIS does not forward the HTTP requests to my Web application - instead it just returns "The page cannot be found" to the browser.

How do I disable this default behavior and allow my Web. app. to process ALL requests on IIS 6, regardless of whether the file is actually disk or not?

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

够运 2024-07-24 10:04:33

将通配符映射添加到 ASP.NET ISAPI 引擎(您可以从任何 ASP.Net 扩展映射复制位置),并确保未选中“验证该文件存在”。

您可以在虚拟目录应用程序配置中找到通配符映射。

Add a wildcardmapping to the ASP.NET ISAPI engine (you can copy the location from any of the ASP.Net extension mappings), and make sure that "verify that file exists" is not checked.

You can find the wildcardmapping in the virtual directory application configuration.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文