我使用TcmUploadAssembly得到了"已经存在的非生成模板"错误

Pau*_*ell 6 tridion tridion-2011

我们一直在使用TcmUploadAssembly来更新Tridion 2013安装中的C#TBB,并且最近遇到过:

Error: Cannot generate template with name Correct Self Closing Elements, 
since a non-generated template is already present.
Run Code Online (Sandbox Code Playgroud)

在我们的例子中,"正确的自我关闭元素"是C#类的名称.它包含在先前已上载且工作正常的程序集中.此时,C#项目正确编译,程序集作为TBB包含在内,并且该类作为引用程序集的TBB包含在内.

Pau*_*ell 6

我们的一位用户在Tridion中手动创建了TBB条目.他将代码输入为:

<%RunTemplate Template="tcm:14-29653-2048"
  Class="Tridion.AccountCenter.TemplateBuildingBlocks.CorrectSelfClosingElements"%>
Run Code Online (Sandbox Code Playgroud)

从他的副本和粘贴中遗漏出来的是一个看似无害的评论.他粘贴的代码应该是:

/* This template was generated through the Tridion Assembly Template Upload */
<%RunTemplate Template="tcm:14-29653-2048"
  Class="Tridion.AccountCenter.TemplateBuildingBlocks.CorrectSelfClosingElements"%>
Run Code Online (Sandbox Code Playgroud)

TcmUploadAssembly显式查找该注释,如果找不到,则抛出"非生成"错误.