Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Custom Templates> Error generating manager templates
 

Pages: 1
Custom Templates
Error generating manager templates
Page:1/1 

  Print all messages in this thread  
Poster Message
sherman
User



Location:
Malaga - Spain
Joined on:
31-Jul-2007 18:58:13
Posted:
9 posts
# 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:

Code:
<?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
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14603 posts
# Posted on: 01-Aug-2007 10:02:07.  
Please check the following thread:
http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7686


  Top
sherman
User



Location:
Malaga - Spain
Joined on:
31-Jul-2007 18:58:13
Posted:
9 posts
# 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! Laugh
  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.