compile errors on v2

Posts   
 
    
jovball
User
Posts: 443
Joined: 23-Jan-2005
# Posted on: 16-Aug-2006 08:53:14   

I am attempting to upgrade an existing v1 LLBLGen project to v2. I have done this with a few other projects without much trouble. On this project I am getting a ton of compilation errors.

I am using VS 2005, VB.NET adapter scenario. I have checked all of the references to LLBLGen and they are all for v2.

Here is a partial sample of the errors. Any help is appreciated.

Joel Reinford Data Management Solutions LLC

Error 10 Name 'FieldInfoProviderSingleton' is not declared. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeImageEntity.vb 114 32 dms.theCompany.dal Error 11 Name 'EntityFieldFactory' is not declared. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeImageEntity.vb 271 66 dms.theCompany.dal Error 12 Name 'EntityFieldsFactory' is not declared. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeImageEntity.vb 277 11 dms.theCompany.dal Error 13 Type 'AttributeImageEntityFactory' is not defined. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeImageEntity.vb 282 15 dms.theCompany.dal Error 14 Type 'AttributeImageRelations' is not defined. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeImageEntity.vb 370 51 dms.theCompany.dal Error 15 Type 'AttributeImageRelations' is not defined. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeImageEntity.vb 372 16 dms.theCompany.dal Error 16 Type 'EntityCollection' is not defined. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeImageEntity.vb 393 42 dms.theCompany.dal Error 17 Name 'TypeDefaultValue' is not declared. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeImageEntity.vb 434 22 dms.theCompany.dal Error 18 Name 'TypeDefaultValue' is not declared. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeImageEntity.vb 452 22 dms.theCompany.dal Error 19 Name 'FieldInfoProviderSingleton' is not declared. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeItemEntity.vb 162 32 dms.theCompany.dal Error 20 Name 'EntityFieldFactory' is not declared. C:\websites\theCompany.net\LLBLGen Pro Projects\GeneratedCode\DbGeneric\EntityClasses\AttributeItemEntity.vb 468 66 dms.theCompany.dal

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Aug-2006 13:18:02   

Most probably your application is referencing the wrong version of the LLBLGen Pro runtime libraries. Try to remove the runtime libraries from your application references and re-add them again. Make sure you select the version 2 ones.

jovball
User
Posts: 443
Joined: 23-Jan-2005
# Posted on: 16-Aug-2006 16:40:14   

I have already done this so I'm really puzzled. Any other suggestions?

Just to clarify, I'm getting these errors when I try to compile the Db Generic and DbSpecific projects in a VB.NET adapter scenario.

Joel Reinford Data Management Solutions LLC

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 16-Aug-2006 17:02:35   

jovball wrote:

I have already done this so I'm really puzzled. Any other suggestions?

Just to clarify, I'm getting these errors when I try to compile the Db Generic and DbSpecific projects in a VB.NET adapter scenario.

Joel Reinford Data Management Solutions LLC

If you build the 2 projects one by one (so not a solution build, but first build the dbgeneric and then the dbspecific project) do they compile then? It seems as if the project you refer to types doesn't have any reference to the assemblies with the types, though you checked these references... Very odd.

Frans Bouma | Lead developer LLBLGen Pro
jovball
User
Posts: 443
Joined: 23-Jan-2005
# Posted on: 16-Aug-2006 17:13:48   

I think I've solved this. In the property pages for the Db Generic and Db Specific projects, the Assembly Name and the Namespace were both filled in. For example, both the Assembly Name and Namespace had DMS.MyProject.DAL or DMS.MyProject.DAL.DbSpecific.

I noticed that my other (compiling successfully) projects did not have anything in the namespace fields. When I removed the namespace entries, the project compiled without errors.

Joel Reinford Data Management Solutions LLC

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 16-Aug-2006 20:24:25   

That's indeed a requirement simple_smile VB.NET is a little.... strange with namespaces wink

Frans Bouma | Lead developer LLBLGen Pro