1
Answer

consuming wcf service from windows service

yaron schneider

yaron schneider

15y
5.8k
1
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)
0
Roei Bar

Roei Bar

NA 7.8k 0 15y
can you send over the code to my Email for Review

bar.roei.work@gmail.com

its usually a problem just in configuration, i believe that is your problem as well.