我一直试图弄清楚为什么我的 View 在我的登台环境中返回 404,而不是在我的开发环境中。
我的 Global.asax 中的第一个 Route 条目如下:
routes.MapRoute(
"FindStore",
"FindStore",
new { controller = "FindStore", action = "Index" });
所有 View 都肯定存在并且在正确的目录中。
基本上如果我去http://StagingServer/FindStore我收到 404 错误。我见过的所有其他答案都与 IIS 6 有关。我没有运行它。
最佳答案
我们遇到了类似的问题。我们检查了集成模式、权限和 runAllManagedModulesForAllRequests。没有骰子。最终这个windows hotfix修复。
关于asp.net-mvc - MVC View 在 IIS 7.5 中返回 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2065752/