When running a Repository Optimization job in Rapid Recovery, the following error may occur:
System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.UnauthorizedAccessException: Access to the path 'C:\ProgramData\AppRecovery\RepositoryOptimization\873ed330-4950-44d2-9721-6f53f21134ec\873ed330-4950-44d2-9721-6f53f21134ec#f4f9b3ee-818e-432b-bb15-dc38e7d4d847#066427cc-a9b8-11e4-80c2-005056a633f3#77.xml' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)