Click here to Skip to main content
13,002,169 members (75,332 online)
Rate this:
Please Sign up or sign in to vote.
See more:

My problem is that I have two web application one is web application and second is wcf services when I publised both application and deployed on server than not able to connect between services and also services is not connectig with mysql database and getting
Error:-no connection could be made because the target machine actively refused it

Can u help me please.

Posted 16-Jan-13 0:51am
Updated 16-Jan-13 0:52am
Richard MacCutchan 16-Jan-13 6:54am
Are you sure that IP address is the one where your service is running?
Zoltán Zörgő 16-Jan-13 6:56am is localhost, or loopback with other terms. So you are trying to establish a connection from and to the same machine. Is this your intention? And are you sure that the service is running on port 57207 after deployment?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

This is common error in client server architecture. I am assuming that your WCF proxy generation code is right. Most of the time, following are reasons for this error:-

Your server and client are running on same machine?

a. If yes, check port number. It should be the same in both sides (client and server).

b. If not (which have higher probability), change your server name in client side.


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100