I have a windows service ,it need to call the wcf service ,the wcf service is hosted in IIS, how can call the wcf service.
The wcf service is hosted in IIS successfully and also i can call it from windowsform successfully, but when i try to call the wcf service from window service using the same way, it's failed. By the way , the WCF service is hosted in remote computer.
The return error is : 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.
I check the Event Viewer and also found an error:
DCOM was unable to communicate with the computer EBMESF009 using any of the configured protocols.
Do i use the wrong way to call wcf? Or other reason?