tags:

views:

500

answers:

2

Hi Mine is windows application. I am using web service(build using wcf2008).when i add service reference to my application it is generated one app.config file.

and i am calling this API as

UUCPAPI.UUCPAPIServerClient uucp = new UUCPAPI.UUCPAPIServerClient(); here it is throwing exception as "Could not find default endpoint element that references contract 'UUCPAPI.IUUCPAPIServer' 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."

any body has idea?

Thanks

A: 

Hi Please find this

"<client> <endpoint address="http://...../uucpapi/UUCPAPIServer.svc" binding="wsHttpBinding" binding configuration="WSHttpBinding_IUUCPAPIServer" contract="UUCPAPI.IUUCPAPIServer" name="WSHttpBinding_IUUCPAPIServer"> <identity> <dns value="localhost" /> </identity> </endpoint> </client>"
A: 

I get something similar, can someone point me in a direction of a better understanding of the wcf end point addressing scheme and in-code verses in config files configuration options/requirements or debugging techniques?
I would consider a good training class or a book but would prefer something cheaper and faster.