【问题标题】:Azure function cannot access WCF service which hosted in Internal windows serverAzure 功能无法访问托管在内部 windows 服务器中的 WCF 服务
【发布时间】:2021-02-07 18:35:00
【问题描述】:

我在 Visual Studio 上使用 .Net 框架创建了 Azure HTTP Trigger 函数。在该函数中,它调用托管在我们内部 Windows 服务器中的 wcf 服务。我在 localhost 中托管函数(使用 Visual Studio)并使用邮递员调用函数 URL 没有问题,它已成功调用 WCF 服务。 但是在部署 azure 之后,当我测试该功能时,我得到了以下错误。

在 https://dev_service.ca/ourservice.svc 上没有可以接受消息的端点监听。

【问题讨论】:

    标签: .net visual-studio azure wcf azure-functions


    【解决方案1】:

    这可能是您的 web.config 文件有问题。它被配置为使用地址 localhost。

    也可能是你的应用服务没有开启 https。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多