BizTalk 管理控制台 - 保存属性时出错 - 尝试更改 WCF 自定义 basicHttpBinding 以使用 SSL

BizTalk Admin Console - Error Saving Properties - Trying to change WCF-Custom basicHttpBinding to use SSL

我有一个 SendPort/Webservice 使用 http。然后我将 web 服务更改为需要 SSL,更改 web.config,并使其从 SOAP-UI 运行。

现在我想更改现有的 SendPort 以使用 SSL。我尝试将 "BasicHttpBindingElement/Security" 下的模式更改为传输(在 BT2010 中),但出现错误:

Error Saving Properties: (System.InvalidCastException) Unable to cast object of type 'Microsoft.Samples.CustomTextMessageEncoder.CustomTextMessageEncodingElement' to type 'System.ServiceModel.Configuration.BindingCollectionElement'.

是否必须将 SendPort 更改为 WCF-BasicHttp? 我做错了什么,或者这可能是 Biztalk 管理控制台中的错误?

不是 100% 确定,但我在项目中的另一个 SendPort 上确实有自定义行为。我把它拿出来了,因为它没有被使用。有可能它没有在出现问题的服务器上正确安装(即不在 GAC 中)。然后我能够进行上述更改并且没有错误。

但是当我 运行 我得到这个错误(我以前见过这个,但是通过 SOAP-UI 和一个使用 basicHttp 绑定的端口克服了它):

Details:"System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at https://mysite/myapp/myservice.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)

所以它现在看起来,我将使用 basicHttp 绑定。