【发布时间】: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
我试图遵循这个主题的可能解决方案:
我尝试了所有给定的解决方案,例如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