Mutliple Reference versions

Posts   
 
    
Xception
User
Posts: 4
Joined: 12-Aug-2010
# Posted on: 12-Aug-2010 07:13:31   

Hi,

I have just migrated my LLBLGen Pro 2.0 project files to 3.0

Generating the source code was all good.

I removed the old reference SD.LLBLGen.Pro.ORMSupportClasses.NET20 of 2.0 and added the new reference (3.0) in VS

When using reflector to view project.DALDBSpecific.dll, i noticed there are 2 references to SD.LLBLGen.Pro.ORMSupportClasses.NET20

2.6 and 3.0

Even though I only added the 3.0 in VS.

How do I remove this 2.6 reference? (I cannot see 2.6 in VS)

I have tried numerous times removing the reference and adding it again without success.

If I try to run the application, the below error appears: Could not load file or assembly 'SD.LLBLGen.Pro.ORMSupportClasses.NET20, Version=2.6.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

The weird thing is, all the other libraries dont have this problem (including project.DAL.dll)

edit: using VS 2008

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 12-Aug-2010 08:44:22   

If you open the VS csproj file in notepad, can you find any reference to the 2.6 assembly?

Xception
User
Posts: 4
Joined: 12-Aug-2010
# Posted on: 12-Aug-2010 08:45:39   

Yes I forgot to say I've tried that

Only the 3.0 reference was in the csproj file as well :\

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 12-Aug-2010 09:12:36   
Xception
User
Posts: 4
Joined: 12-Aug-2010
# Posted on: 12-Aug-2010 13:33:12   

I was reading that earlier today, still didnt fix my issue rage

I removed ALL references to LLBLGEN and added them in one by one...

The same 2.6 is still being referenced somehow :S just for 1 project too >.<

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 12-Aug-2010 20:36:56   

Have you tried generating into a new empty folder...?

Matt

Xception
User
Posts: 4
Joined: 12-Aug-2010
# Posted on: 13-Aug-2010 02:45:15   

Ah silly me!

Generating to new empty folder clears it.

What I realised when looking at the project file is the reference to SD.LLBLGen.Pro.DQE.SqlServer.NET20 was 2.6 Does that require 2.6 ORMSupportClasses?

Changing that to 3.0 fixed the problem.

Thanks all.

Xception

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 13-Aug-2010 07:11:09   

Xception wrote:

What I realised when looking at the project file is the reference to SD.LLBLGen.Pro.DQE.SqlServer.NET20 was 2.6 Does that require 2.6 ORMSupportClasses?

Yes.

Xception wrote:

Changing that to 3.0 fixed the problem.

Good you fixed it wink

David Elizondo | LLBLGen Support Team