简体   繁体   English

从IIS 6-7.5移动.Net网站(404.0错误)

[英]Moving a .Net website from IIS 6 - 7.5 (404.0 error)

I'm getting the following error after migrating an app built on II6 to IIS 7.5 将基于II6构建的应用程序迁移到IIS 7.5后,出现以下错误

  • Module IIS Web Core Notification 模块IIS Web核心通知
  • MapRequestHandler Handler StaticFile MapRequestHandler处理程序StaticFile
  • Error Code 0x80070002 错误代码0x80070002

On the IIS 7.5 side, I have a wildcard script map setup to: 在IIS 7.5方面,我将通配符脚本映射设置为:

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

The application pool is setup to use classic mode and .Net 2. 应用程序池设置为使用经典模式和.Net 2。

The URL I am working with would looking something like this: 我正在使用的URL看起来像这样:

http://fb.domain.com/ryanqaaw/tab/

The wildcard map would handle the /ryanqaaw/tab/ as those folders to not exist in the root. 通配符映射将处理/ ryanqaaw / tab /,因为那些文件夹在根目录中不存在。

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... 但是我不太确定该怎么做...

In IIS 7.5 the configuration is far more simple, almost no configuration required. 在IIS 7.5中,配置要简单得多,几乎不需要配置。

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. 我的建议是,创建一个新的Web应用程序项目,并使其在IIS 7.5中运行,然后更改应用程序的配置文件以镜像新的项目。

Instead of your wildcard handler use an integrated pipeline for your apppool and all should be fine. 代替您的通配符处理程序,为您的apppool使用集成管道,一切都应该没问题。

Start IIS Manager and click on the server name. 启动IIS管理器,然后单击服务器名称。 Double click on the option [ISAPI and CGI restrictions]. 双击选项[ISAPI和CGI限制]。 See if ASP.net v2.0 is enabled or not. 查看是否启用了ASP.net v2.0。

您需要在Handler Mappings列表中移动通配符映射,以便它出现在StaticFile处理程序之前(单击操作窗格中的“ View Ordered List ...”链接并使用上移/下移选项)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM