Security Error?

Topics: ASP.NET 2.0
Oct 31, 2010 at 8:06 PM

Loaded up version 1.6.1, added a MySQL connection, added the 6.2.2 DLL to the config file, and modified the web.config. Here is the error I get. See Below. Not sure how to get past this one. It runs on my local machine even going out to the remote database just fine. I am using godaddy for hosting.

Security Exception

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.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   MySql.Data.MySqlClient.MySqlTrace..cctor() +0


Coordinator
Oct 31, 2010 at 11:05 PM

I would try Googling for "SecurityPermission mysql godaddy".  This result looks promising.

Nov 1, 2010 at 1:52 AM

So it looks like the problem was using a mysql dll connector that was in version 6. It has some issues with godaddy. I installed a version 5 dll and it worked fine, thank for pointing me int the right direction.