- Create a new folder through Media Library.
- Upload some files (in my test simple jpgs were enough).
- Open at least one of the uploaded files in your browser (e.g. navigate to the Media Library folder, select the file, click on the link at Filename to the right).
- Delete the folder.
- Experience the application being restarted as also made apparent with below exceptions being thrown from the framework.
Message: A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
Additional information: Thread has aborted. (Exception from HRESULT: 0x80131530)
This only happens with local Media, so this is not an issue when e.g. using Azure Blob storage.
This could be caused by FileChangesNotifications (see:
) but a) there is no corresponding Event Log entry and b) after trying various ways to disable FCN it still happens. So it seems it's something else. Also see:
Was the same issue:
I have no idea how this can be solved but this is one very painful issue for sites using local Media storage.