tags:

views:

467

answers:

0

I have a WCF service that uses BasicHttpBindings and a bunch of Windows mobiles that should connect to them. I was able to connect to the service using windows mobile Emulator when the service used App.Confing in order to created the endpoint in a windows application.

Now that I have ported the WCF service to a Windows Service and implemented the endpoints and behaviors in code, WM emulator is unable to connect to the service. I have turned my firewall off and using WcfTestClient.exe I'm able to connect to service both from my computer and a remote computer. I receive following exception each time I'm trying to connect:

"An error occurred while receiving the HTTP response to http://192.168.12.142:6303/MyService. 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."