Im having problem consuming a WCF Service.
To call this Service, I created my own WCF Service with VS2008 own template.
Then I added a Service Reference to the WCF Service to consume.
So far so good, the service shows up in the Solution Explorer and all
methods as well.
Then I Created a Class to call the Service from my own WCF Service.
And everytime I try to create an object I get the same error message.
"Could not find default endpoint element that references contract Service
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
I tried all suggested solutions found on the web without success. The
web.config file shows the correct naming and URL of the WCF service I am
trying to call.
As a side note, creating a service reference and calling the WCF service
from a WinForm app works perfectly. Basically I need to do this from a class
How can I make this work???