CodeEmitter::Could not find template 'SD_DerivedEntityFactoriesAdapterTemplate'.

Posts   
 
    
Rainbow
User
Posts: 29
Joined: 23-Feb-2004
# Posted on: 19-Dec-2004 16:44:11   

Hi,

I downloaded the extension to allow the creation of sub classes but I get this error when generating the code.

I am on the latest llblgen (downloaded it all last night).

Any Idea why it can't find the template? I copied everything into the relevant folders.

John

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 20-Dec-2004 09:59:37   

The templateset config points to the template file in the templateBinding tag. Could you verify for me that the path in the templateBinding is correct? I.o.w.: did you place the template in the correct folder?

Frans Bouma | Lead developer LLBLGen Pro
Rainbow
User
Posts: 29
Joined: 23-Feb-2004
# Posted on: 20-Dec-2004 11:58:09   

Otis wrote:

The templateset config points to the template file in the templateBinding tag. Could you verify for me that the path in the templateBinding is correct? I.o.w.: did you place the template in the correct folder?

Hi,

<task name="DerivedEntityFactoryClassesGenerator" assemblyFilename="SD.LLBLGen.Pro.TaskPerformers.dll" taskPerformerClass="SD.LLBLGen.Pro.TaskPerformers.CodeEmitter">
<parameter name="destinationFolder" value="DatabaseGeneric\FactoryClasses"/>
<parameter name="failWhenExistent" value="false"/>
<parameter name="filenameFormat" value="DerivedEntityFactories.[extension]"/>
<parameter name="templateID" value="SD_DerivedEntityFactoriesAdapterTemplate"/>
<parameter name="emitType" value="generic"/>
</task>

That is the definition of the template.

The two templates are in SharedTemplates C# (I basically copied all files as they were laid out in the zipped package).

<!-- Derived entity specific template bindings -->
    <templateBinding templateID="SD_DerivedEntityFactoriesAdapterTemplate" templateFilename="..\..\..\SharedTemplates\C#\derivedEntityFactoriesAdapter.template" />
    <templateBinding templateID="SD_DerivedEntityAdapterTemplate" templateFilename="..\..\..\SharedTemplates\C#\derivedEntityAdapter.template" />

This path is the same as all the other template bindings and they seem to work.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 20-Dec-2004 12:48:11   

Ok, did you select the custom template set as well? If you select the standard C# template set, the binding isn't found obviously simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Rainbow
User
Posts: 29
Joined: 23-Feb-2004
# Posted on: 20-Dec-2004 15:35:33   

Otis wrote:

Ok, did you select the custom template set as well? If you select the standard C# template set, the binding isn't found obviously simple_smile

flushed flushed flushed flushed flushed flushed flushed flushed flushed flushed flushed flushed flushed flushed flushed flushed

nuff said smile