【问题标题】:Unhandled exception. Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found未处理的异常。无法配置 HTTPS 端点。未指定服务器证书,找不到默认的开发者证书
【发布时间】:2021-10-27 23:20:20
【问题描述】:

我将我的API service application 发布到Azure cloud。我进入 Azure api 服务console 并尝试运行我的服务。尽管如此,我还是遇到了这样的错误:

Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found

我试图遵循这个主题的可能解决方案:

Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found

我尝试了所有给定的解决方案,例如removing certificates, running dotnet commands etc,但我仍然遇到此错误,不知道这里还能做些什么。我真的很喜欢它。谁能帮帮我?

【问题讨论】:

  • 你是如何启动你的 web 应用程序的?如果您将其链接到具有单个 Web 项目的解决方案,它应该会自动启动吗?
  • @MaartenDev 刚进入 Azure 控制台并执行 AppiService.exe 然后我看到了这个错误
  • 但是应该不需要手动启动服务,你的解决方案有多个web项目吗?
  • @MaartenDev 它更像是一个 API 休息服务而不是 Web 项目。让我检查一下它是否有效..
  • 很高兴听到该 api 有效,您可以在 WebApp > Monitoring > App Service Logs 刀片中启用日志记录。然后,您可以使用WebApp> Monitoring > Log Stream 查看日志或使用FTP/Blob 查看日志。

标签: .net-core azure-web-app-service .net-5 kestrel


【解决方案1】:

希望Maarten Dev 建议的解决方案已解决您的问题。我将其转换为帮助其他社区成员的答案。

您可以在 WebApp > Monitoring > App Service Logs 边栏选项卡中启用日志记录。然后,您可以使用 WebApp> Monitoring > Log Stream 或通过使用 FTP/Blob 查看日志来查看日志

【讨论】:

    猜你喜欢
    • 2019-04-17
    • 2020-05-01
    • 2022-10-17
    • 2022-01-01
    • 1970-01-01
    • 2014-04-15
    • 1970-01-01
    • 2013-06-04
    • 2013-01-05
    相关资源
    最近更新 更多