Export (0) Print
Expand All
Expand Minimize

Troubleshooting Exceptions: System.UnauthorizedAccessException

An UnauthorizedAccessException exception is thrown when the operating system denies access because of an I/O error or a security error.

Make sure you have sufficient privileges to access this resource.

For more information, see Code Access Security Basics.

If you are attempting to access a file or registry key, make sure it is not read-only.

For more information, see Requesting Permissions.

Community Additions

© 2014 Microsoft