我正在使用带有BizTalk 2013的新WCF-SAP适配器。此适配器提供了使用经典RFCSdk或SAP .net连接器的选项。我的SAP接收位置适用于经典的RFCSdk连接器类型,但当我将其更改为NCo时,我的接收位置无法启用。当我尝试在重新启动Host实例后启用它时,我在应用程序日志中收到以下错误
The Messaging Engine failed to add a receive location "WcfReceiveLocation_SAPBinding_IdocDEBMAS05V3R740_Custom" with URL "**sap://CLIENT=300;LANG=EN;@a/sv-sapecc-dv2/00?GWHOST=sv-sapecc-dv2&GWSERV=sapgw00&ListenerDest=BIZTALKDEV&ListenerGwServ=sapgw00&ListenerGwHost=sv-sapecc-dv2&ListenerProgramId=BIZTALKDEV&RfcSdkTrace=True&AbapDebug=False**" to the adapter "WCF-Custom". Reason: "System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Adapters.SAP.NCo.RfcServerConnection.GetParameters(String serverName)
at SAP.Middleware.Connector.RfcServerManager.GetServer(String serverName, Type[] rfcFunctionHandlers, RfcRepository repository)
at Microsoft.Adapters.SAP.NCo.RfcServerConnection.Open(RfcClientConnection conn)
at Microsoft.Adapters.SAP.SAPInboundContract.InitializeRfcServerConnectionNCo(String connectionArguments)
at Microsoft.Adapters.SAP.SAPInboundContract.StartListener(String[] listenerActions, TimeSpan timeout)
at Microsoft.ServiceModel.Channels.Common.Channels.AdapterChannelListener`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint.Enable()
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint..ctor(BizTalkEndpointContext endpointContext, IBTTransportProxy transportProxy, ControlledTermination control)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiver`2.AddReceiveEndpoint(String url, IPropertyBag adapterConfig, IPropertyBag bizTalkConfig)".
在第二次尝试时我得到以下错误
The Messaging Engine failed to add a receive location "WcfReceiveLocation_SAPBinding_IdocDEBMAS05V3R740_Custom" with URL "sap://CLIENT=300;LANG=EN;@a/sv-sapecc-dv2/00?GWHOST=sv-sapecc-dv2&GWSERV=sapgw00&ListenerDest=BIZTALKDEV&ListenerGwServ=sapgw00&ListenerGwHost=sv-sapecc-dv2&ListenerProgramId=BIZTALKDEV&RfcSdkTrace=True&AbapDebug=True" to the adapter "WCF-Custom". Reason: "SAP.Middleware.Connector.RfcInvalidStateException: destination configuration already initialized
at SAP.Middleware.Connector.RfcDestinationManager.RegisterDestinationConfiguration(IDestinationConfiguration config)
at Microsoft.Adapters.SAP.NCo.RfcServerConnection.Open(RfcClientConnection conn)
at Microsoft.Adapters.SAP.SAPInboundContract.InitializeRfcServerConnectionNCo(String connectionArguments)
at Microsoft.Adapters.SAP.SAPInboundContract.StartListener(String[] listenerActions, TimeSpan timeout)
at Microsoft.ServiceModel.Channels.Common.Channels.AdapterChannelListener`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint.Enable()
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint..ctor(BizTalkEndpointContext endpointContext, IBTTransportProxy transportProxy, ControlledTermination control)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiver`2.AddReceiveEndpoint(String url, IPropertyBag adapterConfig, IPropertyBag bizTalkConfig)".
有关如何解决这些错误的任何帮助?