No connection could be made because the target machine actively refused it [::1]:808
確保安裝了wcf
1.首先查看端口占用情況,
在資源監視器中查看808端口,沒有發現端口被監聽
2.和同事確認,他那邊的808端口,是一個名為SMSvcHost的進程在監聽
查看了一下,進程的file location
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
3.谷歌搜索SMSvcHost.exe start automatically
發現這個exe和一個Service關聯的
4.讓同事使用process explorer查看exe的屬性,發現這個exe關聯到三個service
5.查看自己機器上的service,發現Net Tcp Listener是關閉狀態,重啟服務
重啟之后,依然有問題,exe不知道去監聽iis中配置好的wcf端口
和微軟的agent聊天,智能聊天機器人發的鏈接可以用
I would suggest you to repair the TCP/IP stack in your system and check whether the issue is resolved. Follow the steps mentioned below.
a. Click on Start, Programs and then Accessories and right click on Command Prompt, select "Run as Administrator" to open a command prompt.
b. In the command prompt, type in the bolded text, one command after the other, pressing Enter between each of them:
§ Reset WINSOCK entries to installation defaults:netsh winsock reset catalog
§ Reset IPv4 TCP/IP stack to installation defaults:netsh int ipv4 reset reset.log
§ Reset IPv6 TCP/IP stack to installation defaults:netsh int ipv6 reset reset.log
c. Reboot the machine.
就我的個人測試而言,只需要執行第一句
然后重啟net tcp listener adapter服務
https://www.cnblogs.com/webu/archive/2013/06/07/3123170.html
簡單來說netsh winsock reset命令含義是重置 Winsock 目錄。如果一台機器上的Winsock協議配置有問題的話將會導致網絡連接等問題,就需要用netsh winsock reset命令來重置Winsock目錄借以恢復網絡。
winsock是windows網絡編程接口,從Windows XP SP2開始內置了一條命令使用netsh能夠對該接口進行修復。
netsh是一個能夠通過命令行操作幾乎所有網絡相關設置的接口。比如設置IP,DNS,網卡,無線網絡等。
netsh winsock reset:
先進入netsh
然后進入winsock這個部件
對winsock這個部件執行reset命令。
效果就是重置Winsock。對於一些WinSock被破壞導致的問題有奇效。在netsh出現之前,對於WinSock問題的修復是非常繁瑣的
命令也可以一層一層遞進