在将VS从VS发布到远程服务器后对WCF服务运行svcutil.exe时,我得到了这个:
> URI: http://myuri/mysvc.svc?wsdl
>
> Metadata contains a reference that cannot be resolved:
> 'http://myuri/mysvc.svc?wsdl'.
>
> There was no endpoint listening at http://myuri/mysvc.svc?wsdl that
> could accept the message. This is often caused by an incorrect address
> or SOAP action. See InnerException, if present, for more details.
>
> Unable to connect to the remote server
>
> No connection could be made because the target machine actively
> refused it 127.0.0.1:8888
经过大量的故障排除后,我终于尝试在其他机器上对同一个uri运行svcutil,包括我网络内外的机器,并获得预期的结果:
Attempting to download metadata from 'http://myuri/mysvc.svc?wsdl' using WS-Metadata Exchange or DISCO.
Generating files...
C:\Users\Explorer.cs
C:\Users\output.config
我禁用了本地Windows防火墙,没有任何效果。所以我想我已经淘汰了:
这似乎是我的机器本地的:有些东西干扰了svcutil。
其他信息:
有人见过这个吗?