Tuesday, July 2, 2013

No connection could be made because the target machine actively refused it error in WAS hosted WCF service


Recently I have created wcf service which is on NetTCPBinding and hosted in WAS.But when I try to create proxy using WCFtestClient its always failed prompting this error. Sad smile

The reason for this is the host sent a reset signal, instead of an ack when the client tried to connect. It is therefore not a problem in the code. Either there is a firewall blocking the connection or the process that is hosting the service is not listening on that port.

  • There fore we need to marks service port  as allowed port in the server firewall by defining new rule.
  • Need to running NetTcpPort Sharing windows service and Net.Tcp  Distner adapter windows service.


After doing above two steps its works Smile Smile Smile

No comments:

Post a Comment