gpt4 book ai didi

在 IIS 6.0 中使用自签名 SSL 的 WCF,在客户端出现奇怪的错误

转载 作者:太空宇宙 更新时间:2023-11-03 15:07:45 25 4
gpt4 key购买 nike

我有一个在 IIS 6 上运行的 WCF 服务,必须通过包含自签名证书的 SSL 进行访问。我已经完成配置一百万次,一切看起来都正确,但我的客户端应用程序出现以下错误:

System.Net.WebException: The remote server returned an error: (404) Not Found.

EndpointNotFoundException: There was no endpoint listening at https://207.136.158.108/vca_mp/MarketingDataServices.svc that could accept the message. This is often caused by an incorrect address or SOAP action

地址是正确的,我猜这与配置有关。这是我的客户端配置:

<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IMarketingDataServices" maxBufferPoolSize="524288" maxReceivedMessageSize="1000000000" messageEncoding="Text">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</wsHttpBinding>
</bindings>

<client>
<endpoint address="https://207.136.158.108/vca_mp/MarketingDataServices.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IMarketingDataServices"
contract="MarketingDataServicesReference.IMarketingDataServices"
name="WSHttpBinding_IMarketingDataServices">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>

如果有人能提供任何帮助,我们将不胜感激。

最好的,塞巴斯蒂安·G。sgvirtzman@directpartners.com

最佳答案

这是服务配置:

<behaviors>
<serviceBehaviors>
<behavior name="IMPIntranet.WebServices.MarketingDataServicesBehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>




<services>
<service behaviorConfiguration="IMPIntranet.WebServices.MarketingDataServicesBehavior"
name="IMPIntranet.WebServices.MarketingDataServices">
<endpoint address="" binding="wsHttpBinding" contract="IMPIntranet.WebServices.IMarketingDataServices">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
</services>

关于在 IIS 6.0 中使用自签名 SSL 的 WCF,在客户端出现奇怪的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1920396/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com