C# – SecurityException: That assembly does not allow partially trusted callers

ccomreferenceSecuritywinforms

From a C# WinForm project, I want to call a .NET COM method that already exist. I've added the reference to the COM, but I can't get rid of the SecurityException "That assembly does not allow partially trusted callers".

Both projects are strongly named. I've added [assembly: AllowPartiallyTrustedCallers] at the top of the COM project, but it still crash when I try to call the public method.

What step did I miss?

Best Answer

Are they installed in the GAC?

Update: 2nd guess might be versioning issues.