问题描述
我在Windows Server 2008 R2 x64 Enterprise Edition上使用IIS 7.5.在我们使用ASP.NET 4.0开发的项目中,我们使用了WCF服务.但是,当软件从本地计算机运行时,它不会在域上运行.否则,我将收到以下错误:
I'm using IIS 7.5 on Windows Server 2008 R2 x64 Enterprise Edition. In the project we have developed with ASP.NET 4.0 we used WCF Service. But it doesn't run over domain when the software is running from local computer. Otherwise, I am getting the following error:
由于扩展名的原因,无法提供您所请求的页面 配置.如果页面是脚本,请添加处理程序.如果文件应该 下载后,添加一个MIME映射.
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子组件
You should install IIS sub components from
Control Panel
-> Programs and Features
-> Turn Windows features on or off
Internet Information Services
具有小节World Wide Web Services
/Application Development Features
必须在其中检查ASP.NET
(.NET Extensibility
,ISAPI Extensions
,ISAPI Filters
将被自动选择).仔细检查是否已检查特定版本.在Windows Server 2012 R2下,这些选项分为4和2. 4.5.
There you must check ASP.NET
(.NET Extensibility
, ISAPI Extensions
, ISAPI Filters
will be selected automatically). Double check that specific versions are checked. Under Windows Server 2012 R2, these options are split into 4 & 4.5.
从cmd
运行:
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
最后,在IIS管理器中检查您的应用程序是否使用了.NET Framework v4.0版的应用程序池.
Finally check in IIS manager, that your application uses application pool with .NET framework version v4.0.
此外,请查看此答案.
这篇关于在IIS 7.5中找不到HTTP错误404.3-的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!