无法建立连接,因为目标计算机主动拒绝它127.0.0.1:57207 [英] no connection could be made because the target machine actively refused it 127.0.0.1:57207

查看:1143
本文介绍了无法建立连接,因为目标计算机主动拒绝它127.0.0.1:57207的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的问题是我有两个Web应用程序,一个是Web应用程序,第二个是wcf服务,当我发布应用程序并部署在服务器上而不是能够连接服务和服务之间没有连接mysql数据库并获得

错误: - 没有连接可能因为目标机器主动拒绝它127.0.0.1:57207



请你帮我。



Prakash

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

推荐答案

这是客户端服务器架构中的常见错误。我假设您的WCF代理生成代码是正确的。大多数情况下,以下是导致此错误的原因: -



您的服务器和客户端是否在同一台计算机上运行?



a。如果是,请检查端口号。它应该在双方(客户端和服务器)相同。



b。如果不是(概率较高),请在客户端更改服务器名称。





问候,
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,


这篇关于无法建立连接,因为目标计算机主动拒绝它127.0.0.1:57207的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆