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

TypeLoadException - MySqlEFConfiguration (no replies)

$
0
0
With version 7.0.6-IR3 of MySql.Data.Entity I see this exception:

System.TypeLoadException : Inheritance security rules violated by type: 'MySql.Data.Entity.MySqlEFConfiguration'. Derived types must either match the security accessibility of the base type or be less accessible.

It appears it might be due to the fact that this was changed in AssemblyInfo.cs ( https://github.com/mysql/mysql-connector-net/blob/7.0/Source/MySql.Data.Entity.EF6/Properties/AssemblyInfo.cs )

[assembly: AllowPartiallyTrustedCallers]

At some point the "#if EF6" was removed ... this was in ( https://github.com/mysql/mysql-connector-net/blob/7.0.3-IR1/Source/MySql.Data.EntityFramework6/Properties/AssemblyInfo.cs )

#if EF6
[assembly: AssemblyTitle("MySql.Data.Entity for EF6")]
[assembly: AssemblyDescription("Entity Framework 6.0 supported")]
#else
[assembly: AssemblyTitle("MySql.Data.Entity")]
[assembly: AssemblyDescription("")]
[assembly: AllowPartiallyTrustedCallers()]
#endif

Viewing all articles
Browse latest Browse all 1447

Trending Articles



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