安装MSI时,它显示错误1001.操作已超时. [英] When installing a msi it shows a Error 1001. The operation has been timeout.
问题描述
下面的代码是使用Web请求发送URL 它 在某些系统上运行,并且在某些系统上显示为错误1001:操作已超时错误11001:无法连接至 remote 服务器->无法使目标计算机主动拒绝连接:127.0.0.1:51034因此,请为此提供帮助.
Below code is to send the URL using web request from the C# and we get the response the PHP.It is working on some systems and in some systems, it is showing as Error 1001: The operation has been timeout Error 11001: Unable to connect to the remote server--> No connection could be made the target machine actively refused it: 127.0.0.1:51034 So please help on this.
代码:
WebRequest rq = WebRequest.Create("htttps://example.com") ;
rq.Timeout = 200000;
WebResponse rp = rq.GetResponse();
Stream st = rp.GetResponseStream();
StreamReader objSR = new StreamReader(st);
strResponse = objSR.ReadToEnd();
推荐答案
kaethikrl,
Hi kaethikrl,
谢谢您在这里发布.
我测试您的代码.除了您提供的网址外,没有其他错误.该错误通常在以下情况下发生: 跨度>
I test you code. And there is no error except the url you provided. The error usually occurs in the following circumstances, please check.
1.也许您可以关闭防火墙. 2.确保端口号不会被服务器端的其他软件阻止. 最诚挚的问候,
温迪
这篇关于安装MSI时,它显示错误1001.操作已超时.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!