简体   繁体   English

无法建立连接,因为目标计算机主动拒绝了它216.58.212.106:443

[英]No connection could be made because the target machine actively refused it 216.58.212.106:443

I have created windows service using C# to extract lowest fare data from Google QPX Express. 我已经使用C#创建了Windows服务,以从Google QPX Express提取最低票价数据。 The program is working on debug mode but when I install on my machine it is raising No connection could be made because the target machine actively refused . 该程序在调试模式下工作,但是当我在计算机上安装它时,它在上升,由于目标计算机被主动拒绝,因此无法建立连接 Here is the code which I have inserted in the App.Config file. 这是我在App.Config文件中插入的代码。

<system.net>
  <defaultProxy useDefaultCredentials="true">
    <proxy usesystemdefault="True"  bypassonlocal="True" />
  </defaultProxy>
</system.net>

I have solved the issue using the below config. 我已经使用以下配置解决了该问题。

<system.net>
<defaultProxy useDefaultCredentials="true">
<proxy usesystemdefault="True"  bypassonlocal="True" proxyaddress="http://server:port" />
</defaultProxy>
</system.net>

and also configure the service to run on local system account, provide the username and password after you install the service 并将服务配置为在本地系统帐户上运行,并在安装服务后提供用户名和密码

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SignalR错误“由于目标机器主动拒绝连接,因此无法建立连接” - SignalR Error “No connection could be made because the target machine actively refused it” '由于目标机器主动拒绝它,因此无法建立连接 - 'No connection could be made because the target machine actively refused it 由于目标计算机主动拒绝连接,因此无法建立连接-客户端 - No connection could be made because the target machine actively refused it - client side 无法建立连接,因为目标计算机主动拒绝了127.0.0.1:8000 - No connection could be made because the target machine actively refused it 127.0.0.1:8000 由于目标计算机主动拒绝连接,因此无法建立连接-套接字程序 - No connection could be made because the target machine actively refused it - Socket Program 没有连接,因为目标机器主动拒绝它为什么? - No connection could be made because the target machine actively refused it why? “无法建立连接,因为目标机器主动拒绝它” Nethereum 异常 - “No connection could be made because the target machine actively refused it” Nethereum exception “无法建立连接,因为目标计算机主动拒绝了它” - “No connection could be made because the target machine actively refused it” 无法建立连接,因为目标计算机主动拒绝它127.0.0.1:32450 - No connection could be made because the target machine actively refused it 127.0.0.1:32450 无法建立连接,因为目标计算机主动拒绝它127.0.0.1:8082 - No connection could be made because the target machine actively refused it 127.0.0.1:8082
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM