Medium Trust Error: Partially Trusted Callers

Error:

Security Exception

The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details:

System.Security.SecurityException: That assembly does not allow partially trusted callers.

To correct this issue you need to allow partially trusted callers from the code that makes up the DLL causing the error. The following attribute must be added to the assembly's AssemblyInfo.cs file:

[assembly: AllowPartiallyTrustedCallers]

Ensure that the file references the System.Security namespace

using namespace System.Security;

The project will then need to be rebuilt and the new DLL uploaded over the old DLL causing the error.

The default build of the "Dreamweaverctls.dll" will also produce this error message. However, Dreamweaver does provide a .bat file that can be used to recompile the DLL with AllowPartiallyTrustedCallers added to the assembly.

For any other questions regarding this error, please contact Support.