ASP.NET MVC在IIS落空至静态文件处理程序 [英] ASP.NET MVC on IIS falls through to the static file handler

查看:369
本文介绍了ASP.NET MVC在IIS落空至静态文件处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET MVC站点出现问题。

I have a problem with an ASP.NET MVC site.

这是详细信息:


  1. ASP.NET MVC 2

  2. ASP.NET 4集成管道

  3. 的Windows Web服务器IIS 7.5 2008 R2

每当我做的应用程序,我得到的请求HTTP错误404.0 - 未找到误差和详细的错误信息表明它是报告错误静态文件处理程序:

Whenever I make a request for the app I get the "HTTP Error 404.0 - Not Found"-error and the detailed error information shows it is the static file handler that reports the error:


  • 模块: IIS Web核心

  • 通知:麻prequestHandler

  • 处理器: StaticFile

  • 错误code: 0x80070002

  • Module: IIS Web Core
  • Notification: MapRequestHandler
  • Handler: StaticFile
  • Error Code: 0x80070002

这意味着该请求从未进入MVC堆栈。

meaning that the request never entered the MVC stack.

我要指出,在IIS已经在同一个应用程序池,并在ASP.ENT 2应用程序池一个MVC 2供应ASP.NET MVC 3。所以这是对那些给我头痛ASP.NET 4应用程序池组合ASP.NET 2。

I should note that the IIS already serves a ASP.NET MVC 3 on the same app pool and a MVC 2 on a ASP.ENT 2 app pool. So it's the combo ASP.NET 2 on the ASP.NET 4 app pool that are giving me headaches.

基本上,我想升级从ASP.NET MVC 2应用程序在ASP.NET 2.0应用程序池到ASP.NET MVC 2上的ASP.NET 4.0应用程序池。

Basically I want to upgrade the app from ASP.NET MVC 2 on a ASP.NET 2.0 app pool to a ASP.NET MVC 2 on a ASP.NET 4.0 app pool.

因此​​,任何想法?

推荐答案

我看你定你的问题,但任何人都使用Google:

I see you fixed your issue, but for anyone googling:

我有这个问题,在我的情况下,我只需要在IIS中注册ASP.NET 4。我被删除并重新添加网来解决其他问题,只是忘了做。为我工作的命令是:

I had this issue and in my case I just needed to register ASP.NET 4 with IIS. I was deleting and re-adding webs to fix other issues and simply forgot to do that. The command that worked for me was:

C:\\ WINDOWS \\ Microsoft.NET \\ Framework64 \\ v4.0.30319>为aspnet_regiis -i

您自己的.NET版本可能有所不同,特别是如果你在未来,所以上述路径可能并不完全正确。

Your own .net version may be different, especially if you are in the future, so the above path may not be exactly right.

这篇关于ASP.NET MVC在IIS落空至静态文件处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆