Hi all,
I am using a service reference to a webservice and created a new instance of it. I created a message and tried to send this to the webservice but I get this error:
Could not find default endpoint element that references contract 'receivePortService.ITwoWayAsyncVoid' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
Now I am deploying this application to sharepoint, so I just have the dll file. Is there way I can manually set the properties from the configuration file in code?
receivePortService.TwoWayAsyncVoidClient client = new TaskCompletedHandler.receivePortService.TwoWayAsyncVoidClient();
Message msg = Message.CreateMessage(MessageVersion.Default,"*",XmlTextReader.Create(xmlMessage));
client.BizTalkSubmit(msg);
How can I set the endpointaddress and stuff without the app.config?