5

I have made various attempts to resolve 404.17 issue for WCF but none of them worked

Development Environment VS 2008 Team System, .NET Framework 3.5, OS Windows 7.0, IIS Application pool v2.0 classic.

I installed C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ ServiceModelReg

I enabled Windows Communication HTTP Activation using Turn windows feature on

Handler Mappings in IIS

svc-ISAPI-2.0 *.svc Enabled Unspecified IsapiModule inherited svc-ISAPI-4.0_32bit *.svc Enabled Unspecified IsapiModule inherited svc-ISAPI-4.0_64bit *.svc Enabled Unspecified IsapiModule inherited

I cannot change the AppPool to integrated mode becuase Application does not work without classic mode, I have asmx webservices and they all are accessible. Its WCF which is causing issue. Could anyone help me how to resolve this 404.17 issue

<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>
4

2 回答 2

3

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

在此处输入图像描述

于 2018-05-25T19:36:03.697 回答
1

尝试将 WCF 注册到 IIS

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

并执行

 servicemodelreg -i

安装它们

于 2013-09-03T10:24:26.987 回答