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

use*_*039 5 wcf

我已经做了各种尝试来解决WCF的404.17问题,但没有一个工作

开发环境VS 2008 Team System,.NET Framework 3.5,OS Windows 7.0,IIS应用程序池v2.0经典.

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

我使用Turn windows功能启用了Windows Communication HTTP Activation

IIS中的处理程序映射

svc-ISAPI-2.0*.svc已启用未指定IsapiModule继承svc-ISAPI-4.0_32bit*.svc已启用未指定IsapiModule继承svc-ISAPI-4.0_64bit*.svc启用未指定IsapiModule继承

我不能将AppPool更改为集成模式因为没有经典模式应用程序不起作用,我有asmx webservices并且它们都可以访问.它的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>
Run Code Online (Sandbox Code Playgroud)

Gre*_*olf 1

尝试将WCF注册到IIS

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

并执行

 servicemodelreg -i
Run Code Online (Sandbox Code Playgroud)

安装它们