Using Microsoft Data Entity Framework with Microsoft MVC on Mono 2.4

I am using Mono 2.4 on Ubiquity web hosting.

I created a simple MVC animation by linking here and confirming that it works using all Microsoft tools.

The application was then updated to indicate the MySQL server database running on my Ubiquity node. The application works fine on a computer running Microsoft.

Now I'm trying to deploy the application to a monoserver on Ubiquity.

I install System.Web.MVC, so it will be CopyLocal = true.

I deployed the application to a monoserver.


I get this error:

Description: Error parsing the resources needed to service this request. View the source file and modify it to fix this error.

Error message Parser: Assembly System.Data.Entity, Version = 3.5.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089 not found Version Information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433


I guess the problem might be ...

A) Entity structure is not supported in mono. I need to use something other than the Microsoft Data Entity Framework.

B) The public key icon for the mono version of System.Data.Entity is not "b77a5c561934e089".

C) There is something else.


I tried setting CopyLocal = true for the dll System.Entity.Data. So the version of Microsoft DLL deployed on my monoserver. I have doubts that this is legal. Anyway, this caused an error:

Got SIGSEGV while executing native code. This usually indicates a fatal error in the mono executable version or one of the built-in libraries used by your application.


Question

Can someone confirm that you can use Microsoft Entity Framework in Mono? I'm probably going to get away from the Microsoft Entity Framework, for this comment in the Microsoft MVC tutorial above.

"The ASP.NET MVC framework is not tied to the Microsoft Entity Framework. You can create> your database model classes, taking advantage of various relational object mapping (OR / M) tools, including LINQ to SQL, Subsonic, and NHibernate."

However, for consistency, I would like to use the Microsoft Entity Framework in mono, if possible.

+6
asp.net-mvc mono entity-framework
source share
3 answers

You must also set CopyLocal = true to build System.Data.Entity. You noted that you copied System.Web.MVC locally, but you never mentioned that you copied System.Data.Entity locally. You may also need to copy local any of the assemblies that depend on System.Data.Entity that are not part of Mono.

+3
source share

I can confirm that EntityFramework , Microsoft Chart Controls and Microsoft Sync Framework DO NOT work on mono on Linux, despite various requirements from Microsoft and / or MS employees.

This is because Sync Framwork uses pinvoke with the COM interaction component, Microsoft Chart Controls has DirectorySeparator problems, and the EntityFramwork namespace has not yet been ported to mono.

Note that when Microsoft says "works with mono," they mean "with mono on Windows ."

It is assumed that the EntityFramwork port will take at least 1 year until it reaches the alpha / beta stage, that is, if someone decides to do this.

But there are no official plans to migrate EntityFramework.

EntityFramwork can work / s in the mono version for windows if you set localcopy to true.

Instead, I recommend using nhibernate.

Update:

As with Mono 2.11.3, Microsoft has an open EntityFramework.

Therefore, now it is part of the Mono distribution.

This version contains 349 commits, with approximately 514 files.

It includes 15553 inserts and deletions of 3717.

Two down, one to go.
I assume this means:

MANY THANKS TO MICROSOFT THAT TERRIFICATION !!

+8
source share

It seems that there is currently no support for EDF in Mono, but someone is working on it .

+2
source share

All Articles