【问题标题】:WCF SSL Service giving 404 not foundWCF SSL 服务给 404 未找到
【发布时间】:2019-04-15 13:16:26
【问题描述】:

我的 WCF 服务通过 SSL 不断收到 404 错误。没有 SSL 它可以正常工作。我可以直接在浏览器中访问该服务并为其设置 Web 引用。在 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>

【问题讨论】:

  • 我投票结束这个问题,因为它属于 serverfault.com

标签: wcf ssl


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-06
    • 1970-01-01
    • 1970-01-01
    • 2012-08-17
    相关资源
    最近更新 更多