Error generating manager templates

Posts   
 
    
sherman
User
Posts: 9
Joined: 31-Jul-2007
# Posted on: 31-Jul-2007 19:23:30   

I've downloaded the latest version of the manager templates from de 3rd party section.

I've placed the files in the right places (I guess...), in my case:

  • C:\Archivos de programa\Solutions Design\LLBLGen Pro v2.0\Tasks\Manager.Templates.tasks
  • C:\Archivos de programa\Solutions Design\LLBLGen Pro v2.0\Templates\Manager.Template.templatebindings
  • C:\Archivos de programa\Solutions Design\LLBLGen Pro v2.0\Templates\Gallery\EntityManagerBaseTemplate.lpt
  • C:\Archivos de programa\Solutions Design\LLBLGen Pro v2.0\Templates\Gallery\EntityManagerTemplate.lpt
  • C:\Archivos de programa\Solutions Design\LLBLGen Pro v2.0\Templates\Gallery\ManagerBaseTemplate.lpt
  • C:\Archivos de programa\Solutions Design\LLBLGen Pro v2.0\Templates\Gallery\PrefectPathElementCollectionTemplate.lpt

The "Create Directories" and "Create Manager Classes" items appear correctly in the "Task queue to execute" tab of the generate dialog. In the "Template bindings" tab appear:

  • SD.TemplateBindings.SharedTemplates.NET20
  • SD.TemplateBindings.FirebirdSpecific.NET20
  • SD.TemplateBindings.SharedTemplates.BackwardsCompatibility.NET20

When I click "Generate" I receive:

    Task group Manager Templates
        Task group Create Directories
            Task CoreManagerDirectoryCreator
                    Directory 'C:\Documents and Settings\German\Escritorio\LLBLGen\Pruebas\Prueba1\Core\Managers' created/preserved successfully.
            Task CoreDirectoryCreator
                    Directory 'C:\Documents and Settings\German\Escritorio\LLBLGen\Pruebas\Prueba1\Core' created/preserved successfully.
            Task CoreManagerBaseDirectoryCreator
                    Directory 'C:\Documents and Settings\German\Escritorio\LLBLGen\Pruebas\Prueba1\Core\Managers\Base' created/preserved successfully.
        Task group Create Manager Classes
            Task EntityManagerBaseGenerator
                    Could not find template 'EntityManagerBaseTemplate'. It is not defined in any of the bindings specified.
            Task EntityManagerBaseGenerator
                    Could not find template 'EntityManagerTemplate'. It is not defined in any of the bindings specified.
            Task PrefectPathElementCollectionGenerator
                    Could not find template 'PrefectPathElementCollectionTemplate'. It is not defined in any of the bindings specified.
            Task ManagerBaseGenerator
                    Could not find template 'ManagerBaseTemplate'. It is not defined in any of the bindings specified.

The Manager.Template.templatebindings file is unmodified:

<?xml version="1.0" encoding="utf-8"?>
<templateBindings name="Manager Template" description="Manager templates" precedenceLevel="10" databaseDriverID="2D18D138-1DD2-467E-86CC-4838250611AE" xmlns="http://sd/llblgen/pro/templateBindingsDefinition.xsd">
    <supportedPlatforms>
        <platform name=".NET 2.0" />
    </supportedPlatforms>
    <language name="C#">
        <templateBinding templateID="ManagerBaseTemplate" filename="Gallery\ManagerBaseTemplate.lpt" templateLanguage="C#" />
        <templateBinding templateID="EntityManagerBaseTemplate" filename="Gallery\EntityManagerBaseTemplate.lpt" templateLanguage="C#" />
        <templateBinding templateID="EntityManagerTemplate" filename="Gallery\EntityManagerTemplate.lpt" templateLanguage="C#" />
        <templateBinding templateID="PrefectPathElementCollectionTemplate" filename="Gallery\PrefectPathElementCollectionTemplate.lpt" templateLanguage="C#" />
    </language>
</templateBindings>

Can you please help me?

Environment: LLBLGen 2.0.0.0 (june 15th, 2007) C# - Adapter - .NET 2.0 Firebird

PS: Great product wink

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 01-Aug-2007 10:02:07   
sherman
User
Posts: 9
Joined: 31-Jul-2007
# Posted on: 02-Aug-2007 02:00:51   

The "Manager.Template.templatebindings" file has an (unnecessary???) reference to the SQL Server driver:

<?xml version="1.0"?> <templateBindings xmlns="http://sd/llblgen/pro/templateBindingsDefinition.xsd" name="Manager Template" description="Manager templates" precedenceLevel="10" databaseDriverID="2D18D138-1DD2-467E-86CC-4838250611AE" > <supportedPlatforms> <platform name=".NET 2.0" /> </supportedPlatforms> <language name="C#"> <templateBinding templateID="ManagerBaseTemplate" filename="Gallery\ManagerBaseTemplate.lpt" templateLanguage="C#" /> <templateBinding templateID="EntityManagerBaseTemplate" filename="Gallery\EntityManagerBaseTemplate.lpt" templateLanguage="C#" /> <templateBinding templateID="EntityManagerTemplate" filename="Gallery\EntityManagerTemplate.lpt" templateLanguage="C#" /> <templateBinding templateID="PrefectPathElementCollectionTemplate" filename="Gallery\PrefectPathElementCollectionTemplate.lpt" templateLanguage="C#" /> </language> </templateBindings>

Deleting this, everything works fine! smile