I have tried to set up my first cksdev wcf service in sharepoint 2010 and am unable to instantiate my service reference client object in code.
I have two separate sharepoint projects in my solution.
One project that holds the service references and will use the services of the other project. And one project that holds the cksdev wcf service.
The namespace of sharepoint project that holds the wcfservice is NameX.NameY.Application.Services
The wcf markup looks like this
When the first project which holds the wcf services is built and deployed. I am able to add a service reference to it from the othe sharepoint project that will use it.
And i am also naming the service reference Action.
The problem that i get is that when i in code do this
ActionClient client = new ActionClient();
i immediately get this exception.
Could not find default endpoint element that references contract 'Action.IAction' 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.
I would be very thankful for any help with this.
with regards Stefan Johansson