consuming wcf service from windows service

Sep 21 2009 6:25 AM
Hi, I have a basichttpbinding based wcf service that is hosted in IIS.

when consuming it from a winfrom application, everything works well..
But I'm trying to consume it from a windows service.

In my windows service application i added a service reference, registered the service in system services, but when I try to call a function from the service I get the following error (which doesnt occur in my winforms application) :

An error occurred while receiving the HTTP response to http://xxxx/xxxxxx/xxxx.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.

does anyone know what the problem might be?

Thanks

Answers (1)