Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Cannot perform CAS Asserts in Security Transparent methods (just in host) (no replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>