error BC30149 during compilation

Posts   
 
    
bjones
User
Posts: 22
Joined: 13-Feb-2004
# Posted on: 21-Oct-2008 18:53:14   

Using LLBLGenPro Version 1.0.2005.1 Final SQL Server 2000, Adapter with 1.1 Framework Visual Studio 2003 with VB

Thinking that this was a template problem, I downloaded the final full version from the download site and recompiled. Same result confused

C:\Documents and Settings\bjones\My Documents\Visual Studio Projects\Get_Benefits\DatabaseGeneric\ValidatorClasses\TPA_ACCOUNTValidator.vb(3sunglasses : error BC30149: 'Get_Benefits.ValidatorClasses.TPA_ACCOUNTValidator' must implement 'Overridable Function ValidateFieldValue(involvedEntity As IEntityCore, fieldIndex As Integer, value As Object) As Boolean' for interface 'SD.LLBLGen.Pro.ORMSupportClasses.IValidator'.

All of the rest of the Validator classes following this one also fail.

Any ideas?

Attachments
Filename File size Added on Approval
TPA_ACCOUNTValidator.vb 3,339 21-Oct-2008 18:54.29 Approved
MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 21-Oct-2008 21:19:54   

You need "Overrides" rather than "Overridable". "Overridable" means that your method is overridable in classes which inherit from yours, "Overrides" means that you are overriding a method in the class you are inheriting from.

bjones
User
Posts: 22
Joined: 13-Feb-2004
# Posted on: 21-Oct-2008 21:25:52   

MTrinder wrote:

You need "Overrides" rather than "Overridable". "Overridable" means that your method is overridable in classes which inherit from yours, "Overrides" means that you are overriding a method in the class you are inheriting from.

OK, but this is code generated by the Designer (Template), how do I get it to generate the correct code?

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 21-Oct-2008 21:34:25   

Version 1.0.2005.1 is now 4 versions old. Is it possible you could throw 2.6 on (they can be installed side by side) and see if you get the same result...?

bjones
User
Posts: 22
Joined: 13-Feb-2004
# Posted on: 21-Oct-2008 22:06:52   

We don't get this error when using LLBLGen 2.5 w/.net 2.0. We haven't completed the conversion and testing of our upgrade to 2.5, and I need to make a change to production.

I did make a change to the database, that added a new field to the table in question, but I don't see why that would cause a compilation error.

If it would help, I'll attach the TPA_AccountEntity generated code file.

Thanks for helping...

Attachments
Filename File size Added on Approval
TPA_ACCOUNTEntity.vb 37,099 21-Oct-2008 22:07.25 Approved
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 22-Oct-2008 08:01:37   
  • Please generate code to a empty folder. ¿Does the compilation problem persists?
  • What template are you using (Adapter, SelfServicing two classes, SelfServicing general, etc.)?
  • If the problem persists please attach your *.lgp file so we can reproduce the problem. You can open a private HelpDesk thread if you want.
David Elizondo | LLBLGen Support Team
bjones
User
Posts: 22
Joined: 13-Feb-2004
# Posted on: 22-Oct-2008 17:55:45   

I have generated the code to an empty folder several times, and the problem persists.

The strange thing is that the problem moves around with the addition/deletion of entities disappointed

I'll attatch the project for you.

bjones
User
Posts: 22
Joined: 13-Feb-2004
# Posted on: 22-Oct-2008 18:01:55   

The project is too big to attach..confused Alternatives?

bjones
User
Posts: 22
Joined: 13-Feb-2004
# Posted on: 22-Oct-2008 20:50:10   

OK. I resolved the issue...sunglasses The project was generating references to the wrong version of LLBLGen Pro (2.5 instead of 2005.1). This appears to happen when you generate to a clean directory.

Word of warning to those with multiple versions on the same machine!