Newbie problem : Errors by compilation with EntLib 3.1

Data Access Application Blocks Forum

Newbie problem : Errors by compilation with EntLib 3.1

Postby camillelambert on Mon Dec 03, 2007 10:45 am

Hello everybody

First congratulations for the amazing sotware.

Unfortunately, I couldn't manage to get it up and running.

I created the SPs and the C# code, but the latter does not compile.

I added references to EL.Common and EL.Data, along with NCI, EasyyObjectsFree.dll.

What have I done wrong? (error message follows)

Thanks for your time,

Camille Lambert

----------



The type 'Microsoft.Practices.EnterpriseLibrary.Data.Database' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Cannot implicitly convert type 'Microsoft.Practices.EnterpriseLibrary.Data.Database []' to 'Microsoft.Practices.EnterpriseLibrary.Data.Database [c:\\SCAI\\Projects\\AIDA\\CommonLib\\trunk\\CommonLib\\Libraries\\EntLib30\\Microsoft.Practices.EnterpriseLibrary.Data.dll]'

Cannot implicitly convert type 'Microsoft.Practices.EnterpriseLibrary.Data.Database []' to 'Microsoft.Practices.EnterpriseLibrary.Data.Database [c:\\SCAI\\Projects\\AIDA\\CommonLib\\trunk\\CommonLib\\Libraries\\EntLib30\\Microsoft.Practices.EnterpriseLibrary.Data.dll]'

Cannot implicitly convert type 'Microsoft.Practices.EnterpriseLibrary.Data.Database []' to 'Microsoft.Practices.EnterpriseLibrary.Data.Database [c:\\SCAI\\Projects\\AIDA\\CommonLib\\trunk\\CommonLib\\Libraries\\EntLib30\\Microsoft.Practices.EnterpriseLibrary.Data.dll]'

Cannot implicitly convert type 'Microsoft.Practices.EnterpriseLibrary.Data.Database []' to 'Microsoft.Practices.EnterpriseLibrary.Data.Database [c:\\SCAI\\Projects\\AIDA\\CommonLib\\trunk\\CommonLib\\Libraries\\EntLib30\\Microsoft.Practices.EnterpriseLibrary.Data.dll]'

Assembly generation failed -- Referenced assembly 'NCI.EasyObjectsFree' does not have a strong name

Assembly generation failed -- Referenced assembly 'Microsoft.Practices.EnterpriseLibrary.Data' does not have a strong name
camillelambert
Lurker
 
Posts: 1
Joined: Mon Dec 03, 2007 10:35 am
Location: Zürich, Switzerland

Postby mgnoonan on Mon Dec 03, 2007 7:35 pm

Hi Camille,

It sounds like you are having some versioning problems. If you are using the EntLib 3.1, then you will need to add references to Data, Common and ObjectBuilder in *all* projects (including the EO2Free project, which was built using the EL 2.0).

You may also need to go into the Project Properties and reset the Reference Path to point to the correct folder for the EL 3.1.

Then rebuild your project and you should be good to go! Let me know if you run into any other problems.
Matt Noonan
EasyObjects.NET - The O/RM for the Enterprise Library
http://www.easyobjects.net
User avatar
mgnoonan
Expert
 
Posts: 1019
Joined: Tue Sep 14, 2004 3:17 am
Location: Springboro, OH

Re: Newbie problem : Errors by compilation with EntLib 3.1

Postby kamalraturi on Wed May 20, 2009 8:32 am

I cant figure out one thing tht How can I use Latest "Enterprise Library 4.1 - October 2008" with NCIEasyObjectsFree which is having unmatched version. Wht environment I should use If I want to use Enterprise Library 4.1.

I am getting same errors as above.

Thanks
-kamal
kamalraturi
Lurker
 
Posts: 2
Joined: Fri Dec 28, 2007 9:12 am

Re: Newbie problem : Errors by compilation with EntLib 3.1

Postby mgnoonan on Wed May 20, 2009 9:19 am

I haven't tried EO2 with the EntLib 4.x releases yet, mostly because they require .NET 3.5 and I have very few clients on that platform yet.

But it should work. As described above, you have to reset all the references from the EntLib 3.1 version to the 4.1 version in the EasyObjects project. I am not aware of any breaking changes to the Data Access block in the 4.x version.

But I haven't tried it yet.
User avatar
mgnoonan
Expert
 
Posts: 1019
Joined: Tue Sep 14, 2004 3:17 am
Location: Springboro, OH


Return to EasyObjects.NET (Microsoft Enterprise Library)

Who is online

Users browsing this forum: No registered users and 1 guest