从 IIS 6 - 7.5 移动 .Net 网站(404.0 错误)
后,出现以下错误
- 将基于 II6 构建的应用程序迁移到 IIS 7.5模块 IIS Web Core 通知
- MapRequestHandler 处理程序 StaticFile
- 错误代码 0x80070002
在 IIS 7.5 端,我有一个通配符脚本映射设置为:
%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
应用程序池设置为使用 经典模式和.Net 2.
我正在使用的 URL 看起来像这样:
http://fb.domain.com/ryanqaaw/tab/
通配符映射将处理 /ryanqaaw/tab/ 作为这些文件夹不存在于根中。
任何帮助或提示将不胜感激!
编辑:
添加失败的请求跟踪显示了这一点:
ModuleName="IIS Web Core", Notification="MAP_REQUEST_HANDLER", HttpStatus="404", HttpReason="Not Found", HttpSubStatus="0", ErrorCode="The system cannot find the file specified.
(0x80070002)", ConfigExceptionInfo=""
但我不太确定该怎么做......
I'm getting the following error after migrating an app built on II6 to IIS 7.5
- Module IIS Web Core Notification
- MapRequestHandler Handler StaticFile
- Error Code 0x80070002
On the IIS 7.5 side, I have a wildcard script map setup to:
%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
The application pool is setup to use classic mode and .Net 2.
The URL I am working with would looking something like this:
http://fb.domain.com/ryanqaaw/tab/
The wildcard map would handle the /ryanqaaw/tab/ as those folders to not exist in the root.
Any help or tips would be GREATLY appreciated!
EDIT:
Adding Failed Request Tracing shows this:
ModuleName="IIS Web Core", Notification="MAP_REQUEST_HANDLER", HttpStatus="404", HttpReason="Not Found", HttpSubStatus="0", ErrorCode="The system cannot find the file specified.
(0x80070002)", ConfigExceptionInfo=""
But I am not too sure what to make of it...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 IIS 7.5 中,配置要简单得多,几乎不需要任何配置。
我的建议是,创建一个新的 Web 应用程序项目并使其在 IIS 7.5 中运行,然后更改应用程序的配置文件以镜像新项目。
使用应用程序池的集成管道代替通配符处理程序,一切都应该没问题。
In IIS 7.5 the configuration is far more simple, almost no configuration required.
What I suggest is, create a new Web application project and make it run in IIS 7.5 and then change your application's config file to mirror the new one.
Instead of your wildcard handler use an integrated pipeline for your apppool and all should be fine.
启动 IIS 管理器并单击服务器名称。双击选项[ISAPI 和CGI 限制]。查看 ASP.net v2.0 是否启用。
Start IIS Manager and click on the server name. Double click on the option [ISAPI and CGI restrictions]. See if ASP.net v2.0 is enabled or not.
您需要移动处理程序映射列表中的通配符映射,使其位于 StaticFile 处理程序之前(单击操作窗格中的“查看有序列表...”链接并使用上移/下移选项)
You need to move the wildcard mapping in the Handler Mappings list so that it comes before the StaticFile handler (clicking on "View Ordered List..." link in the actions pane and use the Move Up/Down options)