Lpt template error

Posts   
 
    
Zheka
User
Posts: 2
Joined: 07-Mar-2006
# Posted on: 07-Mar-2006 18:07:28   

Hi, I am trying to generate code with lpt-templates from my project. I have an exception:


Unable to cast object of type 'MyTestTemplate' to type 'SD.LLBLGen.Pro.LptParser.ITemplateClass'.

In generated source everything is ok. My MyTestTemplate class implements ITemplateClass. The most interesting thing: if I set parameter “debugBuild” to true, everything works fine.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 07-Mar-2006 20:32:55   

Could you paste your template and describe how you tried to run it? (e.g.: using a single task, or with a generator config..., which parameter values. )

Frans Bouma | Lead developer LLBLGen Pro
Zheka
User
Posts: 2
Joined: 07-Mar-2006
# Posted on: 09-Mar-2006 10:16:52   

I am using source codes of CliGenerator.

I am trying to start CliGenerator itself from different folder (not llblgen folder). Paths for "databaseDriversRootFolder" and others are set correctly to llblgen folder. During the generation of any lpt-templates (for example manager templates) I have an error (which I mentioned above). If I set parameters "debugBuild" and "templateAssemblySourceFileFormat" for all tasks, everything works fine. And also I tried to set full path in probing privatePath in app config, but it didn't help.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 09-Mar-2006 11:36:29   

either use it from the llblgen pro folder, OR copy the files from llblgen pro folder over to the folder you're running cligenerator from.

Frans Bouma | Lead developer LLBLGen Pro