Compile time error on generated code

Posts   
 
    
Emmanuel
User
Posts: 167
Joined: 13-Jan-2006
# Posted on: 14-Jul-2006 16:43:28   

I just made a small change to my schema (made a varchar field longer) and regenerated my code with llblgen "v1.0.2005.1 Final". When I went to rebuild my app I got this error:

Error 1 Using the generic type 'SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase<TEntity>' requires '1' type arguments C:\Documents and Settings\Emmanuel\My Documents\Visual Studio 2005\Projects\Microloan.DAL\CollectionClasses\MembersCollection.cs 38 43 Microloan.DAL

I get this on every declaration of collection classes. Here's an instance that matches the error message above (line 38 ):

namespace Microloan.DAL.CollectionClasses {

// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END

/// <summary>Collection class for storing and retrieving collections of GroupsEntity objects. </summary>
[Serializable]

** public partial class GroupsCollection : EntityCollectionBase** {

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 14-Jul-2006 17:47:50   

Check if you reference the 2.0 runtimes by accident (from a beta or demo or final installation of v2.0) This can be caused by vs.net btw.

Frans Bouma | Lead developer LLBLGen Pro
Emmanuel
User
Posts: 167
Joined: 13-Jan-2006
# Posted on: 18-Jul-2006 17:00:05   

Yup. Referencing the new dll. Oops.

I am getting old - I have absolutely no recollection of having done that! wink

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 18-Jul-2006 20:51:46   

Emmanuel wrote:

Yup. Referencing the new dll. Oops.

I am getting old - I have absolutely no recollection of having done that! wink

wink You can rightfully blame vs.net in THIS occasion sunglasses

Frans Bouma | Lead developer LLBLGen Pro
yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 10-Feb-2010 13:56:21   

version 1.0.2005.1 final (self-servicing) VS2008 asp.net


Hi, the llblGenPro built the project in vs2005.

I only have vs2008 on my machine, I opened it and it seemed to convert ok.

However, when I try to build, I get the error as described above.

I see that it references the following: 1) SD.LLBLGen.Pro.DQE.Access.NET20 2) SD.LLBLGen.Pro.ORMSupportClasses.NET20

Please explicitly tell me how to reference the correct references, so that it works.

Also, do i make the changes in the llblGenPro designer..or in the visualStudio project?

Thanks,

yogi

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 10-Feb-2010 15:13:30   

Make sure the application as well as the generated code references the correct version of SD.LLBLGen.Pro.ORMSupportClasses.NET20, that matches the target .NET version.

yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 10-Feb-2010 17:21:49   

hi Walaa,

Thanks for the reply..it doesn't really help me though. I have tried to be as specific as possible with my question.

I've already expained that it was a vs2005 project that I opened in vs2008, so it's now a vs2008 project.

I still have absolutely no idea whether I have to make the chages in the llblGenPro designer, or in the vs2008 project.

Please clarify.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 10-Feb-2010 17:37:32   

AFAIK, VS 2008 enbles you to use projects which targets different .NET versions.

But if you want to use .NET v.3.5, you should generate the code from LLBLGen Pro Designer to target .NET v.3.5.

yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 10-Feb-2010 17:55:13   

hi Walaa,

No, .net 2.0 is fine by me. .. I just want to get it working.

My vs2008 project already targets .net 2.0 ...I verified this in the project properties.

So, to repeat, the local references in the generated project are:

1) SD.LLBLGen.Pro.DQE.Access.NET20 (v2.0.50727) 2) SD.LLBLGen.Pro.ORMSupportClasses.NET20 (v2.0.50727

Does the above make sense?

As far as the llblGenPro designer goes..I created the project as follows: 1) version 1.0.2005.1 final (self-servicing) 2) selfServing general scenario vsNet 2005 (1.0.2005....) 3) c# template set for MS access

The llblGenPro project seems to generate without problem..it’s only when I try to build the project that I get the error.

A couple of points: 1) I didn’t use an installer..I simply copied the llblGenPro files and license from my old machine. 2) I’m using a 64 bit machine (but the llblGenPro designer works fine..so i assume it’s not an issue)

Hopefully some of the above will shed some light on it.

Many thanks,

yogi

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 11-Feb-2010 02:56:14   

yogiberr wrote:

hi Walaa, So, to repeat, the local references in the generated project are:

1) SD.LLBLGen.Pro.DQE.Access.NET20 (v2.0.50727) 2) SD.LLBLGen.Pro.ORMSupportClasses.NET20 (v2.0.50727

Does the above make sense?

No simple_smile . Maybe you installed a new version as well (v2.x ??)

yogiberr wrote:

A couple of points: 1) I didn’t use an installer..I simply copied the llblGenPro files and license from my old machine.

Please install from the installer. This will register some DLLs in the GAC so VS.Net could resolve them.

.... and, make sure you are using the correct LLBLGen libraries. If necessary, delete the references and add them again, checking that you import the v1.x ones.

David Elizondo | LLBLGen Support Team
yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 11-Feb-2010 11:42:52   

buenas,

ta for the reply. No, my llblGenPro version is v1.X .. it says so on the top of the designer.

I'm wating for dll's and installer via my yahoo email..which is bouncing emails for fun!

My immediate and utmost priority (while waithing for dll's atec) is to get the v1 running to ensure that it all works on my machine...

As a means to this end, surely i should just be able to locate the llblGenPro v1 orm dlls and refernce them, then build the project? yes/no?

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 11-Feb-2010 13:19:58   

this thread is related to the thread where you wait for your license, so I'll close this thread and keep that other thread open.

Frans Bouma | Lead developer LLBLGen Pro