-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to open database file (when deployed to IIS) #181
Comments
HealthChecksUI use SQLite to store healthchecks results on a healthchecksdb file. Can you ensure that the IIS process can write on the site path? You can also modify the healthchecksdb path file, check HealthCheckDatabaseConnectionString |
I close this because no response! |
Hi, In local, every thing works fine, but I publish the webapp on Azure I got an issue:
Following your suggestion, I updated the HealthCheckDatabaseConnectionString properties to Data My thinking about this probleme is because the webapp doesnt have the permission to create healthchecksdb. Is there someone who had the same issue and found a way to fix it? Thanks |
So the problem is clearly due to missing permissions. I dont know to change it on Azure easily. So I added healthchecksdb in the git repository, which is, in my mind, something wrong because the file changes at each commit. So, I m still looking for a clean solution :) |
When testing locally everything seems to work:
However, when I deploy to IIS on a local test site, I get this message on both endpoints:
So next I tried to comment out this line:
services.AddHealthChecksUI();
Now the /healthz endpoint returns a proper response, however the /hc-ui returns the usual UI, but the message in the title.
What am I missing here?
The text was updated successfully, but these errors were encountered: