Access denied while loading the file

0xc0000022 — Access denied while loading the file The file could not be read with the requested access rights.

Why it happens

  • An ACL change on the file
  • A file inside a folder the user cannot read
  • A roaming container with restrictive permissions

Work through these in order

  • Fix the ACL on the file and folder
  • Move the file to a readable location
  • Copy it locally and retry

One thing to keep in mind

Do not keep working files in container folders with restrictive ACLs.

Checked 2026-10-05 — R. Okonkwo.

Before changing anything

The code above is what an application reports; it is not a diagnosis of what went wrong. Two checks are worth doing before permissions are touched: whether the file is on a volume the application can actually reach, and whether the file was moved or renamed since it was last opened. Both report as this code more often than a permission problem does.

Pages in this section describe the code as applications report it. Where a fix is listed here, it is one the library has seen work on a real file; where nothing has been confirmed, the page says so instead of guessing at a cause.