部署网站时访问客户端 URL 时出现错误 "There was no endpoint listening at ...",但在开发上运行良好

Getting error "There was no endpoint listening at ..." while accessing clients URL when website is deployed, but working fine on dev

我有一个 windows 服务器 2008,我已经部署了我的网站来访问客户端 API 很好,由于对服务器 2008 的支持结束,我们已将其格式化为服务器 2016 并重新- 部署了所有应用程序,一切都很好 运行 直到用户尝试访问我们客户端的 API 并且无法连接。我们可以在 debug/dev 模式下成功连接到 API,但是当通过我们部署的网站访问时,我们总是遇到错误 "here was no endpoint listening at https://someurl?wsdl that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details"。我迷路了。

我已经尝试安装所有 IIS 功能和向后兼容性,仍然没有,

这是我的绑定配置。

<binding name="IPRNImplPortBinding1" closeTimeout="00:01:00" openTimeout="00:01:00"
     receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
     bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
     maxBufferPoolSize="524288" maxBufferSize="65536" maxReceivedMessageSize="65536"
     textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"
     messageEncoding="Text">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      <security mode="Transport">
        <transport clientCredentialType="None" proxyCredentialType="None"
          realm="" />
        <message clientCredentialType="Certificate" algorithmSuite="Default" />
      </security>
    </binding>

根据你的描述,我想知道你在你的网站项目中是如何调用ClientAPI的,以及服务端的完整配置。在我看来,调用过程中服务端点地址可能有问题。
大家知道,调用WCF服务一般有两种方式,ChannelFactory或者客户端代理。在这两种方式中,我们必须配置一些额外的设置,服务端点地址,客户端凭据等。
此外,由于与传输安全模式的绑定,你是否建立了客户端和服务器端之间的信任关系?我们必须在 Local CA.
中相互安装证书 如果问题仍然存在,请随时告诉我。

不知道这是否对任何人有帮助,但解决问题的方法是添加 webservice/api 我试图连接位于 C:[= 的主机文件的主机名服务器的 15=]。我不熟悉主机文件,但它真的很有魅力。