ASP.NET Core on Azure WebApp crashes because of SQLite

前提是你 提交于 2021-01-29 06:09:08

问题


I am trying to run HealthChecks UI AspNetCore.Diagnostics.HealthChecks in my ASP.NET Core WebAPI. All works fine on local, but when I deploy to Azure WebApp whole application dies. When I remove the UI from the services in the Startup, all is fine, so I got to conclustion that HealthChecks UI is crashing.

It uses SQLite to store data, so I suspect at this part. I connected via SFTP to the WebAppp where I deployed it and I can see that the SQLite database file is created but has 0 bytes content.

At first I thought it might be problem with Linux host, but app dies on Windows WebApp as well when this package is used for displaying the health checks.

Any clue what might be the issue?

来源:https://stackoverflow.com/questions/55280065/asp-net-core-on-azure-webapp-crashes-because-of-sqlite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!