Click here to Skip to main content
11,707,470 members (73,909 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET MySQL

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
Edited 16-Jan-13 0:52am
Richard MacCutchan at 16-Jan-13 6:54am
Are you sure that IP address is the one where your service is running?
Zoltán Zörgő at 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
0 Mika Wendelius 220
1 Maciej Los 195
2 OriginalGriff 148
3 Sergey Alexandrovich Kryukov 145
4 chainerlt 110
0 OriginalGriff 9,198
1 Sergey Alexandrovich Kryukov 8,562
2 CPallini 5,189
3 Maciej Los 4,921
4 Mika Wendelius 3,856

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2015
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