I am connecting my local system with SAP server using BizTalk adapter and also using Microsoft.servicemodel.channels to open the connection in sap to process XML as input file.
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
cannot open the connection and it through an exception as A specified module could not be found, (Exception from HRESULT : 0x8007007E
)
Kindly please help me
thanks in advance.
binding
? – Gruff