【发布时间】:2020-03-16 13:53:13
【问题描述】:
我的appsettings.json如下:
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*"
}
然后我通过 Visual Studio 进行部署,以框架 netcoreapp3.0 为目标,部署模式为 Self-Contained。
我的天蓝色服务报告以下问题:
HTTP Error 500.0 - ANCM In-Process Handler Load Failure
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fwlink/?LinkID=2028526
应用程序日志包含问题:
Application 'D:\home\site\wwwroot\' failed to start. Exception message:
Application arguments are empty.
Process Id: 4516.
File Version: 13.0.19218.0. Description: IIS ASP.NET Core Module V2. Commit: 4a42afc5aea63750638e118560d43db04bd9ccc2
但是,我没有应用程序参数,因为这是一个 Web 应用程序。任何人都可以就如何从包含实际问题的 Azure Web 服务获取有用的输出提出建议吗?
【问题讨论】:
-
Web 应用程序的 Az 门户中的属性面板应包含调试部分。打开调试,然后将 VS 指向 Azure 并告诉它调试 Web 应用程序。可能会遇到启动错误.. 不知道。
-
“应用程序参数为空”通常表示您的 web.config 文件中存在错误。请编辑您的问题以包括在内。
-
我的应用程序没有 web.config 文件,因为它是一个 aspnetcore 项目。我已经包含了我的 appsettings.json 文件。
标签: azure asp.net-core .net-core