In my case this happened because we don't aggregate to NTFS Permission the user Identity of AppPool to the web site folder on hard drive. We assigned the read and List Folders only and this was enough to get it working.
The actual exception (and its message) recorded in the event description may provide a clue in regards to the origin of the problem. For example:
- Exception: System.ArgumentOutOfRangeException, message: Index was out of range. - This is a software bug, can only be fixed by the application developers.
- Exception: System.Runtime.Serialization.SerializationException, message: Unable to find assembly 'Common, Version=18.104.22.168 - This may indicate some missing files or again, a software bug.
- Exception: System.InvalidOperationException, message: The stream does not support reading - It appears that the application is unable to access some files. They might be corrupted, missing or without the proper permissions.
- Exception: System.InvalidOperationException, message: This access control list is not in canonical form and therefore cannot be modified.
- Exception: System.AppDomainUnloadedException, message: Attempted to access an unloaded AppDomain.