连接尝试失败,因为在一段时间内被连接方未正确响应 [英] A connection attempt failed because the connected party did not properly respond after a period of time in

查看:243
本文介绍了连接尝试失败,因为在一段时间内被连接方未正确响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

费拉斯,

我的Web服务在本地运行良好,但是当我在服务器中发布它时,一切都会出错
它收到错误:
连接尝试失败,因为在一段时间内被连接方未正确响应"

我的网络服务应接收由我们第三方生成的代码


这是我的代码:

Hi Fellas,

my web service is working fine in my local but when i published it in our server it goes all wrong
it receives error:
"A connection attempt failed because the connected party did not properly respond after a period of time in"

my webservice should receive the code generated by our third party


here''s my code:

 Uri uri = new Uri(url, UriKind.Absolute);
WebResponse objResponse;
WebRequest objRequest;
objRequest = System.Net.HttpWebRequest.Create(url);
objRequest.Proxy = System.Net.HttpWebRequest.GetSystemWebProxy();
objRequest.Proxy.Credentials = CredentialCache.DefaultCredentials;
objResponse = objRequest.GetResponse();



对这个错误有任何想法吗?

感谢您在这里的帮助!!! :)



any idea on this error?

appreciate your help here!!! :)

推荐答案

我认为上面的服务器未授予您访问权限或防火墙限制了这样做.
I think above server not given you access or firewall restrict to do so.


这篇关于连接尝试失败,因为在一段时间内被连接方未正确响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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