I created a new context menu extension (CustomTool<VisualContent>) from which I am trying to call a WCF web service. When I try to create the service client, I get this exception:
Could not find default endpoint element that references contract 'ServiceReference1.IService1' 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.
My web service is very simple- the default service you get when you create a new "WCF Service Application" Project in Visual Studio. I tried calling the same service from a separate Windows Forms project and that works fine. I think the problem is that the generated app.config file, which contains all my service endpoint and binding information, is not being loaded when my tool is loaded by Spotfire. Is there a way I can get that to happen? I think I can write out the code for the endpoint and binding but obviously I would prefer to have it in the config file.
Any suggestions appreciated.
Thanks,
Ted