Project looking for the wrong assembly versions

Posts   
 
    
cjmos
User
Posts: 15
Joined: 04-May-2007
# Posted on: 05-Oct-2007 14:39:55   

Hi,

We're trying to upgrade one of our major projects from v2.0 to v2.5. We have re generated all the dals, removed and re-added all the old references. The project compiles fine but when we run it we get the following error on any page where we've used LBLGen entities. _ Could not load file or assembly 'SD.LLBLGen.Pro.ORMSupportClasses.NET20, Version=2.0.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) _

Can anyone tell me why the project is still looking for Version=2.0.0.0 when we have seemingly removed all traces of the old version?

Thanks.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 05-Oct-2007 15:09:26   

Most probably your application is still using the old version of the SD.LLBLGen.Pro.ORMSupportClasses.NET20, sometimes V.S. mistakenly keeps referencing the wrong version.

Try using one solution for the genarated code and the application. Make sure the application reference the generated code projects rather than the dlls Re-build the solution. And make sure all projects are referencing the v.2.5 of the runtime libraries.