![](/img/trans.png)
[英]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 216.58.212.106:443
我已經使用C#創建了Windows服務,以從Google QPX Express提取最低票價數據。 該程序在調試模式下工作,但是當我在計算機上安裝它時,它在上升,由於目標計算機被主動拒絕,因此無法建立連接 。 這是我在App.Config文件中插入的代碼。
<system.net>
<defaultProxy useDefaultCredentials="true">
<proxy usesystemdefault="True" bypassonlocal="True" />
</defaultProxy>
</system.net>
我已經使用以下配置解決了該問題。
<system.net>
<defaultProxy useDefaultCredentials="true">
<proxy usesystemdefault="True" bypassonlocal="True" proxyaddress="http://server:port" />
</defaultProxy>
</system.net>
並將服務配置為在本地系統帳戶上運行,並在安裝服務后提供用戶名和密碼
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.