Hi there,
I need to reference a service that is a part of another project. I have declared and implemented the contract of the service and then tried to add a standard reference (right click ->Add Service reference, and added
http://localhost:8000/MyService?wsdl
The proxy has been generated and it should work at the first glance, however every time I try to run the program I got:
Could not find default endpoint element that references the contract "MyService.IMyContract" 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.
Do you have any ideas how to solve the issue? Here is a part of my config file (ServerModel section):
<client>
<endpoint
address="http://localhost:8000/MyService"
binding="wsHttpBinding"
bindingConfiguration=""
contract="MyService.IMyContract" name="" />
</client>
Any ideas?
Thank you in advance for the replies!
cheers