I created a web application (asp.net mvc) using entity framework to connect to mysql. In my local machine works perfectly, but when I publish on a host I get the message: Can not perform CAS Asserts in Security Transparent methods
Ever tried using various versions of mysql.data dll, I am currently using "6.8.3.0".
Could someone help me please?
More informations:
Visual Studio 2013
.net Framework 4.0
Stack trace:
[InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods]
MySql.Data.MySqlClient.MySqlClientFactory..cctor() +26
[TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.MySqlClientFactory' threw an exception.]
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
Thanks in advance!
Sorry my english.
Ever tried using various versions of mysql.data dll, I am currently using "6.8.3.0".
Could someone help me please?
More informations:
Visual Studio 2013
.net Framework 4.0
Stack trace:
[InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods]
MySql.Data.MySqlClient.MySqlClientFactory..cctor() +26
[TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.MySqlClientFactory' threw an exception.]
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
Thanks in advance!
Sorry my english.