[Mono-list] Mono 3.0 and Entity Framework

Matthias Buchetics mbuchetics at gmail.com
Mon Nov 5 13:25:22 UTC 2012


Hi,
I just compiled Mono 3.0 on a Linux box (OpenSuse) but I am having trouble
getting Entity Framework to work. The Mono documentation (
http://www.mono-project.com/EntityFramework) is seriously lacking on
information about what version of EF is included, it simply says: "As of
Mono 2.11.3, Microsoft's open sourced EntityFramework is part of Mono's
distribution.".

When I run my program I get this error:

Could not load signature of
System.Data.Entity.Internal.InternalConnection:CreateObjectContextFromConnectionModel
due to:
Could not load signature of
System.Data.Entity.Internal.IInternalConnection:CreateObjectContextFromConnectionModel
due to:
ss 08:19:02,879 [SqlEventLogger] sql export error
System.TypeLoadException: Could not load type
'System.Data.Entity.Internal.LazyInternalConnection' from assembly
'EntityFramework, Version=4.4.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
  at AlVis.Sql.AlVisDbContext..ctor (System.String nameOrConnectionString)
[0x00000] in <filename unknown>:0

I then removed the EntityFramework.dll from the program's folder, now I get
this:

System.IO.FileNotFoundException: Could not load file or assembly
'EntityFramework, Version=4.4.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'EntityFramework, Version=4.4.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'

I wasn't able to find any information about how to use EF with Mono besides
the news posts that it is now included.

Thank you,
Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20121105/cb894502/attachment.html>


More information about the Mono-list mailing list