views:

1716

answers:

3

I am trying to Self host a wcf tcp based service inside a windows service. The windows service is a wrapper which does mainly two jobs, 1> hosting a tcp based wcf service, note that the windows service is a simple service 2> running other windows services under it I am able to run the windows service but when trying to connect to it using a client I get a TCP 10061: target machine actively refused connection . What am I missing, any help would be appreciated.

A: 

That sounds like your firewall is blocking incoming requests. Have you opened the TCP port that you are exposing your WCF service on in your firewall?

Jeremy Wiebe
A: 

Are you sure the port you try to connect is the port that the WCF listens?

codemeit
A: 

Am having similar setup and it is working fine. Am using Setup project to install Windows Service. Could you elaborate on what setup you are using to install Windows Service. Can you see it Service Manage console and is it started.

BigBoss