【发布时间】:2020-05-04 12:14:51
【问题描述】:
我正在尝试使用带有自定义绑定的 WCF-Customs 适配器从 BizTalk 调用 Web 服务。我获得了 1 个私钥和 1 个公钥证书。
我使用以下绑定配置配置了绑定
我如下配置了我的行为
我指定了客户端证书的私钥
对于服务,我指定了公钥
但我收到以下错误。任何帮助都会非常有用
System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.FaultException: General security error (No certificates were found for decryption (KeyId))
--- End of inner exception stack trace ---
Server stack trace:
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.Channels.IRequestChannel.E
【问题讨论】:
标签: c# biztalk wcf-binding