This documentation is archived and is not being maintained.

Troubleshooting Exceptions: System.MethodAccessException

A MethodAccessException exception is thrown when there is an invalid attempt to access a private or protected method inside a class.

If the access level of a method in a class library has changed, recompile any assemblies that reference the library.

This exception typically occurs when the caller does not have access permission to the member.

Show: