修复:当文件在 BizTalk Server 中包含注释时 saprfc.ini WCF-SAP NCO 适配器失败

应用对象
BizTalk Server 2013 Branch BizTalk Server 2013 Developer BizTalk Server 2013 Enterprise BizTalk Server 2013 Standard Microsoft BizTalk Adapter Pack 2013

症状

假设您使用 WCF-SAP 适配器,将 ConnectorType 值设置为 NCo ,并设置特定的 RFC 服务器目标名称。 当 saprfc.ini 文件在目标定义中包含额外的注释、空格和回车符时,WCF-SAP 适配器将失败,并将收到以下错误消息:

注意

消息传递引擎无法添加 URL 为“sap://CLIENT=###;LANG=EN;@a/sapserver/##?ListenerDest=DEST1&RfcSdkTrace=False&AbapDebug=False”适配器“WCF-SAP”。 原因:“System.IndexOutOfRangeException:索引超出了 array.at 的范围 Microsoft.Adapters.SAP.NCo.SAPRfcFileParameters.GetSectionInformationFromIniFile (String tempFilePath, String destinationNameFromUri, Int32 sectionCount)
在 Microsoft.Adapters.SAP.NCo.RfcServerConnection.GetParameters (字符串 serverName)
在 Microsoft.Adapters.SAP.NCo.RfcServerConnection.Open (RfcClientConnection conn)
在 Microsoft.Adapters.SAP.SAPInboundContract.InitializeRfcServerConnectionNCo (字符串 connectionArguments)
at Microsoft.Adapters.SAP.SAPInboundContract.StartListener (String[] listenerActions, TimeSpan timeout)
at Microsoft.ServiceModel.Channels.Common.Channels.AdapterChannelListener'1.OnOpen (TimeSpan 超时)
在 System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan 超时)
在 System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan 超时)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen (TimeSpan 超时)
在 System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan 超时)
在 System.ServiceModel.ServiceHostBase.OnOpen (TimeSpan 超时)
在 System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan 超时)
在 Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint.Enable ()
在 Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint..ctor (BizTalkEndpointContext endpointContext, IBTTransportProxy transportProxy, ControlledTermination control)
在 Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiver'2.AddReceiveEndpoint (String url, IPropertyBag adapterConfig, IPropertyBag bizTalkConfig) “.

解决方法

累积更新信息

解决此问题的修补程序包含在 BizTalk Server 的以下累积更新中:

          

状态

Microsoft 已确认在 "适用于" 部分中所列的 Microsoft 产品中存在问题。

参考资料

了解 BizTalk Server 的 Service Pack 和累积更新列表。

了解 BizTalk Server 修补程序和累积更新支持 。

第三方信息免责声明

本文中提到的第三方产品由 Microsoft 以外的其他公司提供。 Microsoft 不对这些产品的性能或可靠性提供任何明示或暗示性担保。