Shadow copies fails to gracefully handle deleted folders between publishes #52433
Closed
1 task done
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
feature-iis
Includes: IIS, ANCM
Is there an existing issue for this?
Describe the bug
Shadow copies (enableShadowCopy) are great but if removing a folder in the published site this causes the site not to load with the following in the Windows event log:
Expected Behavior
I like many others would expect this scenario to be handled gracefully either cleaning up the shadow copy or ignoring the deleted folders in the published site.
Steps To Reproduce
Exceptions (if any)
Unexpected exception: directory_iterator::directory_iterator: The system cannot find the path specified.: "(path to site)\wwwroot.well-known"
.NET Version
8.0.0
Anything else?
IIS runtime support (ASP.NET Core Module v2): 18.0.23305.0
Issue also present in .NET 7.x.
The text was updated successfully, but these errors were encountered: