By default, the trust level on our servers is configured to "Medium trust." If your application generates any of the error messages below, the most likely cause is that your application requires a trust level higher than medium.
You can override the default trust level of your application by modifying the web.config file. See this Knowledge Base article for instructions.
- - -
Description: 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.
System.Security.SecurityException: That assembly does not allow partially trusted callers.
[SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
Request for the permission of: type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Unable to connect to any of the specified MySQL hosts. ---> System.Security.SecurityException: Request for the permission of type 'System.Net.SocketPermission, System,
Request for the permission of type
'System.Net.Mail.SmtpPermission, System, Version=184.108.40.206, Culture=neutral,