[Mono-list] Mono 3.0 and Entity Framework

Daniel Lo Nigro lists at dan.cx
Mon Nov 5 23:27:57 UTC 2012


Mono includes a prerelease version of Entity Framework 6.0. This is the
only version that Microsoft has released as open-source. You should be able
to grab the EntityFramework.dll file from Mono's GAC and reference that in
your application.

You *might *be able to get the app running by creating an assembly binding
in the config file.


On Tue, Nov 6, 2012 at 12:25 AM, Matthias Buchetics <mbuchetics at gmail.com>wrote:

> 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
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20121106/bd7686a4/attachment.html>


More information about the Mono-list mailing list