Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WCF HTTP错误404.17-找不到请求的内容似乎是脚本,静态文件处理程序将不会为其提供服务_Wcf - Fatal编程技术网

WCF HTTP错误404.17-找不到请求的内容似乎是脚本,静态文件处理程序将不会为其提供服务

WCF HTTP错误404.17-找不到请求的内容似乎是脚本,静态文件处理程序将不会为其提供服务,wcf,Wcf,我曾多次尝试为WCF解决404.17问题,但都没有成功 开发环境VS 2008 Team System、.NET Framework 3.5、操作系统Windows 7.0、IIS应用程序池v2.0经典版 我安装了C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg 我使用打开Windows功能启用了Windows通信HTTP激活 IIS中的处理程序映射 svc-ISAPI

我曾多次尝试为WCF解决404.17问题,但都没有成功

开发环境VS 2008 Team System、.NET Framework 3.5、操作系统Windows 7.0、IIS应用程序池v2.0经典版

我安装了C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg

我使用打开Windows功能启用了Windows通信HTTP激活

IIS中的处理程序映射

svc-ISAPI-2.0*.svc启用未指定的ISAPI模块继承 svc-ISAPI-4.0_32位*.svc启用未指定的ISAPI模块继承 svc-ISAPI-4.0_64位*.svc启用未指定的ISAPI模块继承

我无法将AppPool更改为集成模式,因为没有经典模式应用程序无法工作,我有asmx Web服务,它们都可以访问。导致问题的WCF。谁能帮我解决这个404.17问题

<system.serviceModel>
                         <behaviors>
                             <serviceBehaviors>
                                 <behavior name="Solution1.WebApp.CallMonitorServiceBehavior">
                                     <serviceMetadata httpGetEnabled="true" />
                                     <serviceDebug includeExceptionDetailInFaults="false" />
                                 </behavior>
                                 <behavior name="Solution1.WebApp.Service1Behavior">
                                     <serviceMetadata httpGetEnabled="true" />
                                     <serviceDebug includeExceptionDetailInFaults="false" />
                                 </behavior>
                             </serviceBehaviors>
                         </behaviors>
                         <services>
                             <service behaviorConfiguration="Solution1.WebApp.CallMonitorServiceBehavior"
                                 name="Solution1.WebApp.CallMonitorService">
                                 <endpoint address="" binding="wsHttpBinding" contract="Solution1.WebApp.ICallMonitorService">
                                     <identity>
                                         <dns value="localhost" />
                                     </identity>
                                 </endpoint>
                                 <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
                             </service>
                             <service behaviorConfiguration="Solution1.WebApp.Service1Behavior"
                                 name="Solution1.WebApp.Service1">
                                 <endpoint address="" binding="wsHttpBinding" contract="Solution1.WebApp.IService1">
                                     <identity>
                                         <dns value="localhost" />
                                     </identity>
                                 </endpoint>
                                 <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
                             </service>
                         </services>
                     </system.serviceModel>

尝试将WCF注册到IIS

导航到“C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation”

执行

 servicemodelreg -i

要安装它们,请尝试从windows功能激活WCF服务。转到“控制面板\程序\程序和功能”,然后单击“打开或关闭Windows功能”,并检查wcf服务,如所附图片所示


在问题中,它说WCF HTTP激活已经启用,是否还需要启用其他服务才能正常工作?