v2.0 Generated Code (C#) Errors

Posts   
 
    
Shabab
User
Posts: 2
Joined: 31-May-2006
# Posted on: 17-Aug-2006 01:37:06   

I migrated my old LLBLGen project from 1.0 to 2.0. Generated the code and when compiled, got bunch of errors like "The type or namesspace name 'ArrayList' counld not be found (are you missing a using directive or an assembly reference?)" and "The type or namesspace name 'HashTable' counld not be found (are you missing a using directive or an assembly reference?)".

Can somebody pelase guide how to resolve it?

Thanks.

Shabab

JimHugh
User
Posts: 191
Joined: 16-Nov-2005
# Posted on: 17-Aug-2006 02:58:14   

This is a user to user message and not an official response.

I ran into a lot of problems with having 1.2005.1 and 2.0 both installed at the same time.

Make a copy of the 1.2005.1 dll's and use them as browse to assembly references instead of using the GAC for other projects not yet upgraded. Note: Once you upgrade a LGP file to 2.0, there is no going back, but I haven't found the need to. 2.0 can still generate 1.1 dotnet code if necessary.

Then remove all versions of LLBLGen.

Then install the latest full version and your new 2.0 license file.

I don't think it is actually LLBLGens fault, it appears to be more a problem with the way that Visual Studio 2005 keeps assembly version references in the sln file.

I spent most of a weekend trying to upgrade a multi project solution and kept getting weird compiler errors until I finally did the above.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 17-Aug-2006 08:34:27   

Most important thing is to make sure you are referencing the v.2 runtime Libraries of LLBLGen Pro in your application and in the LLBLGen Pro generated project(s).

Also please refer to the LLBLGen Pro docs: "Migrating your code" & "Using the generated code -> Compiling the code"

swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 17-Aug-2006 20:20:40   

Another gotcha is whether you're referring to the CF runtime libraries or the regular ones. Bit myself with that a couple of times now.