This documentation is archived and is not being maintained.

Troubleshooting Exceptions: System.Security.VerificationException

A VerificationException exception is thrown when the security policy requires code to be type-safe and the verification process is unable to verify that the code is type-safe.

Make sure your application is not loading two conflicting versions of a class library.

As part of the verification process, MSIL (Microsoft intermediate language) is checked for type safety to ensure that objects are safely isolated from one another and are therefore safe from inadvertent or malicious corruption. For more information, see Compiling MSIL to Native Code and Type Safety and Security.

Show: