简体   繁体   English

在MVC4 IIS6上获取页面未找到错误

[英]Getting Page not found error on MVC4 IIS6

I wanted to Host my Web Application Built in ASP.NET MVC 4 in .NET 4 on Windows Server 2003 IIS6. 我想在Windows Server 2003 IIS6上使用.NET 4中的ASP.NET MVC 4构建我的Web应用程序。 I followed some steps given in This Blog (haacked.com) . 我按照本博客(haacked.com)中给出的一些步骤进行了操作 I followed the IIS6 Extension-less URLs approach. 我遵循IIS6无扩展URL方法。 But the problem is, I am getting Page not found error: 但问题是,我得到Page not found错误:

在此输入图像描述

I have been searching for 2 days now. 我一直在寻找2天。 Every solution redirects me to this approach. 每种解决方案都将我重定向到这种方法。 Can anyone guide me if there is any other solution or is there anything missing in the current solution? 如果有任何其他解决方案或当前解决方案中是否有任何缺失,任何人都可以指导我吗?

The instructions on the page you linked seem outdated, it uses an .mvc extension but that was changed to 'no extension' after the early preview/beta version that was being used back then. 您链接的页面上的说明似乎已过时,它使用.mvc扩展名,但在当时正在使用的早期预览/测试版之后,该名称已更改为“无扩展名”。

Instead of using .mvc you should leave the extension empty (or enter just a period if you can't leave it empty), and then uncheck the "Verify that file exists" checkbox. 您应该将扩展名留空 (或者如果您不能将其留空, .mvc输入一段时间),然后取消选中 “验证该文件是否存在”复选框,而不是使用.mvc

Reference: http://weblogs.asp.net/scottgu/tip-trick-integrating-asp-net-security-with-classic-asp-and-non-asp-net-urls 参考: http : //weblogs.asp.net/scottgu/tip-trick-integrating-asp-net-security-with-classic-asp-and-non-asp-net-urls

At last I solved it, May be in future it will be helpful to someone. 最后我解决了它,将来可能会对某人有所帮助。 I was using 64 bit version so for 64 bit version, the file aspnet_isapi.dll should be referenced from: 我使用的是64位版本,因此对于64位版本,应该引用文件aspnet_isapi.dll

C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\aspnet_isapi.dll C:\\ WINDOWS \\ Microsoft.NET \\ Framework64 \\ v4.0.30319 \\ ASPNET_ISAPI.DLL

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

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