Missing references?

Posts   
 
    
alexdresko
User
Posts: 336
Joined: 08-Jun-2004
# Posted on: 18-Apr-2011 16:48:01   

My code won't compile because it can't find IElementCreator2, DerivedTableDefinition, FunctionMappingStore, and IDynamicRelation.

Also this error shows up once...

Error 6 The non-generic type 'SD.LLBLGen.Pro.ORMSupportClasses.TypedListBase2' cannot be used with type arguments <irrelevant>TypedList.cs

Note that I recently inherited this project and am attempting to generate the code for the first time. I think the old project file I was given was a 2.0 project file and I'm generating with 2.6 at the moment.

Does that make sense? I'm compiling with 2010 with SP1, on a fully updated Win7 64 machine if that matters.

Thanks!

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 18-Apr-2011 16:56:57   

It seems that you are generating the code with SelfServicing template set. While the consuming application was written against the Adapter template set.

alexdresko
User
Posts: 336
Joined: 08-Jun-2004
# Posted on: 18-Apr-2011 17:06:30   

Walaa wrote:

It seems that you are generating the code with SelfServicing template set. While the consuming application was written against the Adapter template set.

"Adapter" is selected in "General Settings" --> "Template Group" when I generate. disappointed

And yes, the application was written against the adapter template set.

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 18-Apr-2011 17:27:51   

Then most probably your application is still referencing v.2.0 of the ORMSupportCLasses dll.

alexdresko
User
Posts: 336
Joined: 08-Jun-2004
# Posted on: 18-Apr-2011 17:43:10   

Walaa wrote:

Then most probably your application is still referencing v.2.0 of the ORMSupportCLasses dll.

if I remove that reference, I get a LOT more errors.. Can't find IPrefetchPathElement2, ComparisonOperator, EntityField2, FieldBetweenPredicate, FieldCompareNullPredicate, FieldCompareValuePredicate, etc....

Thanks for helping with this, BTW. I didn't expect this kind of setback when I inherited this project...

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 18-Apr-2011 18:07:02   

I didn't say to remove the reference and that's it simple_smile

You should replace it with a reference to v.2.6 of the same file.

alexdresko
User
Posts: 336
Joined: 08-Jun-2004
# Posted on: 18-Apr-2011 18:20:29   

Walaa wrote:

I didn't say to remove the reference and that's it simple_smile

You should replace it with a reference to v.2.6 of the same file.

By golly, she compiles again!

Now to upgrade to LLBLGen v3!!! simple_smile