无法从Intranet访问自托管的WCF服务

时间:2016-09-20 16:28:47

标签: c# wcf intranet extranet

我在作为LocalSystem运行的Windows服务中有一个WCF服务(自托管)。此Windows服务在云中的虚拟环境(OVH)上运行 可以通过https访问此服务,并使用真正的X509证书(来自CA)。 我在传输级别使用TransportWithMessageCredentials,在消息级别使用用户名验证。

我的WCF客户端可以在https://wcfserver.domain.com上通过互联网正常运行。 当我尝试从Intranet运行我的WCF客户端时,他无法连接到https://wcfserver.domain.com

我在测试后从内部网进行了调查:

  • 没有WCF跟踪登录服务器

  • Internet Explorer(网络诊断):您尝试访问的网络服务暂时无法使用。存在的可能是网关和Web服务之间的通信问题。代理或网关返回502错误。 所以我在SOAP消息中删除了Timestamp,但问题仍然是......

  • Fiddler 响应是:

    Headers:
    HTTP/1.1 502 Fiddler - Connection Failed
    Date: Tue, 20 Sep 2016 16:14:07 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: close
    Cache-Control: no-cache, must-revalidate
    Timestamp: 18:14:07.000
    
    Caching:
    Under RFC2616, HTTP/502 responses will not be cached regardless of what caching headers may be present.
    HTTP/1.1 Cache-Control Header is present: no-cache, must-revalidate
        no-cache: This response MUST NOT be reused without successful revalidation with the origin server.This response contains neither an ETAG nor a Last-Modified time. This will prevent a Conditional Revalidation of this response.
    
  • 我还注意到https://wcfserver.domain.com或其公共IP无法访问Web服务页面,但如果我使用本地IP https://192.168.XXX.XXX,我可以打开它(但是我要手动接受证书警告......

任何帮助或建议将不胜感激! :)我被卡住了!

此致 弗朗索瓦

0 个答案:

没有答案
相关问题