Hi there
Both 32-bit and 64-bit host instances are running. We use WCF-Custom adapter to communicate with SAP. And for WCF-Custom adapter, we assigned a 64-bit host.
We copied all the library files in rfcsdk32bit to folder Windows\System32, and those in rfcsdk64bit to folder Windows\SysWOW64.
All is going just fine until we can not enable the receive location retrieving data from SAP with WCF-Custom adapter and BindingType sapBinding. Error information as below:
Reason: System.BadImageFormatException: Could not load file or assembly 'Microsoft.Adapters.SAP.SAPGInvoker.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
File name: 'Microsoft.Adapters.SAP.SAPGInvoker.dll'
at Microsoft.Adapters.SAP.SAPBinding.CreateBindingElements()
at System.ServiceModel.Channels.Binding.CanBuildChannelListener[TChannel](BindingParameterCollection parameters)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfUtils.IsQueuedReceive(Binding binding)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.BtsServiceHostBase.InitializeRuntime()
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)
This problem disappears right after we switch the host for WCF-Custom adapter back to a 32-bit host, which is for sure.
Some gudiance instructed: Both 32-bit rfcsdk library files and 64-bit rfcsdk library files need to be copied into both two directories above. But most of the filenames are overlapped obviously. How come they can exists under a same directory? Or do I just get the wrong 64-bit rfcsdk? Does anyone happen to have by hand? I already serach through SAP download site. My rfcsdk files list is below:
32-bit:
icudt34.dll
icuin34.dll
icuuc34.dll
librfc32u.dll
librfc32u.lib
libsapu16vc80.dll
libsapucum.dll
libsapucum.lib
saprfc32.lib
64-bit:
icudt26l.dll
icuin26.dll
icuuc26.dll
librfc32u.dll
librfc32u.lib
libsapu16vc71.dll
libsapucum.dll
libsapucum.lib
Thanks
Gou Jun