我在 Windows Server 2008 R2 x64 企业版上使用 IIS 7.5。在我们使用 ASP.NET 4.0 开发的项目中,我们使用了 WCF 服务。但当软件从本地计算机运行时,它不会跨域运行。否则,我会收到以下错误:
HTTP Error 404.3-Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is script, add a handler. If the file should be downloaded, add a MIME map.
最佳答案
您应该安装 IIS 子组件
控制面板
-> 程序和功能
-> 打开或关闭 Windows 功能
Internet 信息服务
有小节万维网服务
/应用程序开发功能
您必须在此处检查ASP.NET
(.NET Extensibility
、ISAPI Extensions
、ISAPI Filters
将是自动选择)。仔细检查是否检查了特定版本。在 Windows Server 2012 R2 下,这些选项分为 4 和 4.5。
从cmd
运行:
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
最后在 IIS 管理器中检查您的应用程序是否使用 .NET Framework v4.0 版本的应用程序池。
另外,请查看this answer .
关于iis-7.5 - HTTP 错误 404.3 - 在 IIS 7.5 中未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6425442/