Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET MySQL
Hi,
 
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 127.0.0.1:57207
 
Can u help me please.
 
Prakash
Posted 16-Jan-13 1:51am
Edited 16-Jan-13 1:52am
v2
Comments
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
   
127.0.0.1 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
good
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.
 

Regards,
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 245
1 Jochen Arndt 155
2 PIEBALDconsult 150
3 Afzaal Ahmad Zeeshan 120
4 DamithSL 115
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2014
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