小编Mar*_*rco的帖子

IIS 拒绝连接到 localhost 和 127.0.0.1

我无法在我的一台机器上连接到 localhost 和 http://127.0.0.1。但是http://machinename有效。

这会导致 Windows 令牌应用程序无法发出令牌,因为它无法连接。

这显示在事件日志中:

Request for security token failed with exception: 
System.ServiceModel.EndpointNotFoundException: Could not connect to 
http:// localhost : 32843/SecurityTokenServiceApplication/securitytoken.svc/actas. 
TCP error code 10061: No connection could be made because the target machine actively 
refused it 127.0.0.1:32843
Run Code Online (Sandbox Code Playgroud)

我可以 ping 到本地主机:

Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Run Code Online (Sandbox Code Playgroud)

同样对于 127.0.0.1

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 …
Run Code Online (Sandbox Code Playgroud)

iis-7 localhost windows-server-2008-r2

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

iis-7 ×1

localhost ×1

windows-server-2008-r2 ×1