找不到404的WCF SSL服务

时间:2018-11-12 19:08:28

标签: wcf ssl

我通过SSL收到的WCF服务始终出现404错误。如果没有SSL,它将无法正常运行。我可以直接在浏览器中访问该服务,并对其进行网络设置。在Fiddler中,它给出了“没有通道正在主动监听端点”错误,这是web.config:

<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>  
<serviceDebug includeExceptionDetailInFaults="false"/>  
</behavior>
</serviceBehaviors>

<endpointBehaviors>
<behavior name="Inventory.Product.ProductDataAspNetAjaxBehavior"> 
<enableWebScript />     
</behavior>
</endpointBehaviors>

</behaviors>

<bindings> 
<webHttpBinding>  
<binding name="secureHttpBinding">  
<security mode="Transport">  
<transport clientCredentialType="None"/>  
</security>  
</binding>  
</webHttpBinding>  
</bindings>  


<serviceHostingEnvironment aspNetCompatibilityEnabled="true"  />
<services>
<service name="Inventory.Product.ProductData"     
behaviorConfiguration="ServiceBehavior">


<endpoint address="" binding="webHttpBinding" 
behaviorConfiguration="Inventory.Product.ProductDataAspNetAjaxBehavior"    
contract="Inventory.Product.ProductData" />
<endpoint contract="IMetadataExchange" binding="mexHttpBinding"   
address="mex" />


</service>
</services>
</system.serviceModel>

1 个答案:

答案 0 :(得分:0)

好的,我在WCF over SSL - 404 error找到了答案。我忘了设置绑定配置-当我这样做时,它就可以了。