·  阅读

An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

此为与服务器建立连接时发生的错误。

因为没有服务器侦听所分配的主机和端口。它的字面意思是机器存在,但它没有在指定端口上侦听的服务。

通常,发生某些事情阻止连接到主机和端口。要么是 防火墙阻止了连接 ,要么是托管服务的进程未在该特定端口上侦听。 这可能是因为它根本没有运行 ,或者因为它 正在侦听不同的端口

分类:
后端
标签: