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 each other and are therefore safe from accidental or malicious corruption. For more information, see Type Safety and Security.