Problem with generating manager templates

Posts   
 
    
Posts: 3
Joined: 16-Jan-2005
# Posted on: 16-Jan-2005 01:29:47   

Hi guys

I am having a few problems getting the Manager templates to compile. I get the following error:

Compile Error: (0, 0): CS0006 : Metadata file 'D:!Share\TemplateStudio\RuntimeLibraries\DotNet11\ SD.LLBLGen.Pro.ORMSupportClasses.NET11.dll' could not be found

When I try to generate the code I get the exception “Task PrefetchPathElementCollectionGenerator aborted the process”.

Any ideas what I am doing wrong?

Thanks

Mike

cmartinbot
User
Posts: 147
Joined: 08-Jan-2004
# Posted on: 16-Jan-2005 02:04:14   

You need to change the first line in EntityManagerBaseTemplate.lpt to point to your LLBLGen folder which is more than likely:

<$ C:\Program Files\Solutions Design\LLBLGen Pro\RuntimeLibraries\DotNet11\SD.LLBLGen.Pro.ORMSupportClasses.NET11.dll $>
Posts: 3
Joined: 16-Jan-2005
# Posted on: 16-Jan-2005 03:42:05   

Sorry for posting such a noob question, I should have taken a look at the templates. Anyways thanks for your help!

erichar11
User
Posts: 268
Joined: 08-Dec-2003
# Posted on: 16-Jan-2005 04:13:42   

Great timing, I just installed the templetes and had the same exact error. Thanks for the help.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39848
Joined: 17-Aug-2003
# Posted on: 16-Jan-2005 11:05:50   

Perhaps a small readme.txt should be added to the templates wink

Frans Bouma | Lead developer LLBLGen Pro
erichar11
User
Posts: 268
Joined: 08-Dec-2003
# Posted on: 16-Jan-2005 20:25:16   

still running into a problem when compiling and running a single lpt template. I get the following error message:

---- Running task CompileAndRunSingleLptTemplate

Generator tasks::Executing task group. CompileAndRunSingleLptTemplate::Executing task. CompileAndRunSingleLptTemplate::Using class 'SD.LLBLGen.Pro.LptParser.DotNetTemplateEngine' in assembly 'SD.LLBLGen.Pro.LptParser.dll'. Exception caught: Object reference not set to an instance of an object.. Call stack: at SD.LLBLGen.Pro.LptParser.DotNetTemplateEngine.Perform(IGenerator executingGenerator, ITask taskDefinition, Hashtable parameters) at SD.LLBLGen.Pro.GeneratorCore.Task.Perform(IGenerator executingGenerator) at SD.LLBLGen.Pro.GeneratorCore.TaskGroup.Perform(IGenerator executingGenerator) at SD.LLBLGen.Pro.GeneratorCore.Generator.Start(ITaskGroup tasksToExecute, Project projectDefinition, TemplateSetDefinition templateSet, ApplicationConfiguration configurationSettings) at SD.LLBLGen.Pro.Tools.TemplateEditor.MainForm.RunTasks(ITaskGroup tasksToRun, Project projectToUse)

---- Running task CompileAndRunSingleLptTemplate Completed.

Not sure what this means. The only thing I do is select

Run single task Select compleandrunSingleLtpTemplate select fileformat to .cs select the template id for EntityManagerBaseTemplate hit run and it starts to process and then I get the error mentioned above

cmartinbot
User
Posts: 147
Joined: 08-Jan-2004
# Posted on: 17-Jan-2005 01:59:40   

Check this out to make sure your setting up the task correctly.

erichar11
User
Posts: 268
Joined: 08-Dec-2003
# Posted on: 17-Jan-2005 03:23:03   

Thanks, cmartinbot, that worked.

Tell me, how did you figure out to place [elementName]ManagerBase.cs as the field format. I couldn't find anything in the docs about that.

Secondly,emitType = generic, what does that do and where does it come from.

Eric

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39848
Joined: 17-Aug-2003
# Posted on: 17-Jan-2005 09:57:00   

That's in the SDK docs, description of the shipped task performers simple_smile

Frans Bouma | Lead developer LLBLGen Pro
cmartinbot
User
Posts: 147
Joined: 08-Jan-2004
# Posted on: 17-Jan-2005 12:28:05   

As Otis said, your answers are in the docs.

And I must say...The manager templates and any "add-on" templates are not meant to be run under a "single task" scenario. For those templates to work correctly, they must be generated using the generator.config file. In other words, use the F7 command instead of the F5. You should be looking for "Gallery.Core.Managers.config" option when generating your code.

I hope that helps you out. simple_smile

cmartinbot
User
Posts: 147
Joined: 08-Jan-2004
# Posted on: 17-Jan-2005 12:31:40   

Otis wrote:

That's in the SDK docs, description of the shipped task performers simple_smile

I still think you should make the "emitType" a dropdown with the available enum values. wink

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39848
Joined: 17-Aug-2003
# Posted on: 17-Jan-2005 13:58:14   

That's on the todo for templatestudio simple_smile

Frans Bouma | Lead developer LLBLGen Pro
erichar11
User
Posts: 268
Joined: 08-Dec-2003
# Posted on: 17-Jan-2005 22:53:11   

Thanks cmartin, yeah I got it to work with the generator config file just fine, but was walking through the template studio docs and wanted to try the single task stuff. I'll take a look at the other docs today as well.