Click here to Skip to main content
15,947,389 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a WCF service just following the steps presented in the following link. Then, created a Windows service and installed the WCF service. It has been installed successfully. However, it throws error as "TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8732. " when I was adding the WCF service to a Test Client Windows Form project.

I have searched in Google and found many topics related to the "TCP error code 1061" and none of them solved my issue. Can anyone help to solve this issue?
Regards
Link
Posted
Updated 24-Jul-12 6:06am
v8

1 solution

This error means, the server you are trying to connect is found, but for some reason denying the client access. Client is trying to connect through an invalid port or it does not allow remote connections or a firewall issue.

Look here for full detailed explanation here:
Error message: TCP Provider.. - Cause & Resolution[^]
MSDN Blog: (provider: TCP Provider, error: 0 - No connection..[^]


If needed, troubleshoot more following this: MSDN Blog: TCP Provider: No connection could be made because..[^]
 
Share this answer
 
Comments
MuhtarQong 24-Jul-12 12:17pm    
Sandeep,
Thank you for your response. I have read these references before posting this question. My SQL server connection is working good. This issue is occurring when I compile the WCF service as a DLL, then hosting it inside a windows service. If I add a new client project to the same Solution, where the WCF service is created, it is working good as well.
Sandeep Mewara 24-Jul-12 12:22pm    
So you say consuming dll is an issue. Sounds like some security configuration.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900