【问题标题】:I got a "a non-generated template is already present" error using TcmUploadAssembly使用 TcmUploadAssembly 时出现“未生成的模板已存在”错误
【发布时间】:2016-04-25 15:02:45
【问题描述】:

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

Error: Cannot generate template with name Correct Self Closing Elements, 
since a non-generated template is already present.

在我们的例子中,“Correct Self Closing Elements”是一个 C# 类的名称。它包含在先前已上传且工作正常的程序集中。此时 C# 项目编译正确,程序集作为 TBB 包含在内,并且类作为引用程序集的 TBB 包含在内。

【问题讨论】:

    标签: tridion tridion-2011


    【解决方案1】:

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

    <%RunTemplate Template="tcm:14-29653-2048"
      Class="Tridion.AccountCenter.TemplateBuildingBlocks.CorrectSelfClosingElements"%>
    

    他从他的复制和粘贴中遗漏的是一个看似无害的评论。他粘贴的代码应该是这样的:

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

    TcmUploadAssembly 显式查找该注释,如果找不到则抛出“未生成”错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-06
      • 1970-01-01
      • 1970-01-01
      • 2022-07-19
      • 1970-01-01
      相关资源
      最近更新 更多