dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.44k stars 10.02k forks source link

Application immediately shuts down due to non-existent "app_offline.htm" #23860

Closed BennieCopeland closed 4 years ago

BennieCopeland commented 4 years ago

Describe the bug

My ASP.Net Core 3.1 self contained application using ANCMv2 shuts down after one second of starting up. In the event log it states that it shut down after detecting "app_offline.htm" when no "app_offline.htm" file exists in the application root directory or higher. This happens both in process and out of process.

To Reproduce

I suspect it might be caused by updating several LiteDb files located in the application root directory. It appears to stop happening once those files stop being written to. Running procmon, I see repeatedly:

FASTIO_NETWORK_QUERY_OPEN {approot}\app_offline.htm NAME NOT FOUND
IRP_MJ_DIRECTORY_CONTROL {approot} SUCCESS

until this message where upon it seems to fail

IRP_MJ_DIRECTORY_CONTROL {approot} NOTIFY CLEANUP

I can't find anything else very relevant

Further technical details

Running on Windows 2012 R2 with IIS 8.

shirhatti commented 4 years ago

Could you please collect and share enhanced diagnostic logs from ANCM?

ghost commented 4 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

See our Issue Management Policies for more information.