ChannelFactory 中的 open 函数给出 File not found 异常。使用 Biztalk 适配器
open function in ChannelFactory gives File not found exception. using Biztalk adapter
我正在使用 BizTalk 适配器将我的本地系统连接到 SAP 服务器,并使用 Microsoft.servicemodel.channels 在 sap 中打开连接以将 XML 作为输入文件处理。
SAPBinding binding = new SAPBinding();
binding.ReceiveTimeout = TimeSpan.MaxValue;
binding.SendTimeout = TimeSpan.MaxValue;
binding.EnableBusinessObjects = true;
binding.EnableSafeTyping = true;
EndpointAddress address = new EndpointAddress(SAPConnectionString);
ChannelFactory<IRequestChannel> factory = new ChannelFactory<IRequestChannel>(binding, address);
// add credentials
factory.Credentials.UserName.UserName = SAPUserName;
factory.Credentials.UserName.Password = SAPPassword;
// Open client
factory.Open(TimeSpan.MaxValue);
Factory.open
无法打开连接,它通过一个异常,因为找不到指定的模块,(来自 HRESULT : 0x8007007E
的异常)
请帮助我
提前致谢。
错误消息表明存在对无法找到的程序集的依赖。请注意,这不是特定于 WCF 或 SAP 适配器的内容。
谷歌搜索 "HRESULT: 0x80070007E" 我发现:
C# Unable to load DLL (Module could not be found HRESULT: 0x8007007E)
在 David Heffernan 的回答中,他建议使用 Dependency Walker 等工具来帮助调试依赖性问题。
我正在使用 BizTalk 适配器将我的本地系统连接到 SAP 服务器,并使用 Microsoft.servicemodel.channels 在 sap 中打开连接以将 XML 作为输入文件处理。
SAPBinding binding = new SAPBinding();
binding.ReceiveTimeout = TimeSpan.MaxValue;
binding.SendTimeout = TimeSpan.MaxValue;
binding.EnableBusinessObjects = true;
binding.EnableSafeTyping = true;
EndpointAddress address = new EndpointAddress(SAPConnectionString);
ChannelFactory<IRequestChannel> factory = new ChannelFactory<IRequestChannel>(binding, address);
// add credentials
factory.Credentials.UserName.UserName = SAPUserName;
factory.Credentials.UserName.Password = SAPPassword;
// Open client
factory.Open(TimeSpan.MaxValue);
Factory.open
无法打开连接,它通过一个异常,因为找不到指定的模块,(来自 HRESULT : 0x8007007E
的异常)
请帮助我
提前致谢。
错误消息表明存在对无法找到的程序集的依赖。请注意,这不是特定于 WCF 或 SAP 适配器的内容。
谷歌搜索 "HRESULT: 0x80070007E" 我发现: C# Unable to load DLL (Module could not be found HRESULT: 0x8007007E)
在 David Heffernan 的回答中,他建议使用 Dependency Walker 等工具来帮助调试依赖性问题。