Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

How I got around erroneous EntityFramework reference...
phejndorf
#1 Posted : Tuesday, 2 August 2011 1:43:28 AM(UTC)
Rank: Newbie

Joined: 2/08/2011(UTC)
Posts: 2
Location: Aarhus

Trying to compile the solution I got compilation errors in the TIS.GSP.BusinessInterfaces project saying that the various DataAnnotations [Table], [MaxLength] etc could not be found.

When I looked at the project references (and in the .csproj file) I could see that the EntityFramework pointed to an EntityFramework dll version that I did not have. I guess it should have been in the GAC.

To fix the problem was, as always, easier that to find its cause: My solution was to delete the reference, and then add the EntityFramework package with the Visual Studio NuGet extension.
Roger Martin
#2 Posted : Tuesday, 2 August 2011 11:59:31 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

To compile the source code, ADO.NET Entity Framework 4.1 or higher must be installed. Note that the Admin Guide has a section called Opening the source code in Visual Studio.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
phejndorf
#3 Posted : Wednesday, 3 August 2011 4:42:26 AM(UTC)
Rank: Newbie

Joined: 2/08/2011(UTC)
Posts: 2
Location: Aarhus

Thanks for your swift reply, I'm sorry for not doing my homework. Now that I've got the whole thing running I'll definitely get to it.

Basically I just downloaded, unzipped, fired up Visual Studio and pressed F5, and apart from some self-inflicted server trouble I had Gallery Server up and running in no time flat and it really has a truckload of features.

Checking out the source was really just because (to quote) "I have often felt that programming is an art form, whose real value can only be appreciated by another versed in the same arcane art; there are lovely gems and brilliant coups hidden from human view and admiration, sometimes forever, by the very nature of the process." (from http://www.pbm.com/~lindahl/mel.html)
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.