【问题标题】:SendEmail pipeline showing "Could not resolve type name error" while adding pipeline- sitecore emailcampaignSendEmail 管道在添加管道-sitecore emailcampaign 时显示“无法解析类型名称错误”
【发布时间】:2015-08-24 06:18:51
【问题描述】:

我已经创建了一个类

public class ECMSendMessageProcessor
{
    public void Process(SendMessageArgs args)
    {
    }
}

并在“SendEmail”上添加了一个管道

<SendEmail>
  <processor type="Namespace.ClassName.Method,Assembly" />

当我发送电子邮件时,我正面临 无法解析类型名称“Namespace.ClassName.Method,Assembly”

参考链接http://www.craigtaylor.us/2014/10/injecting-tracking-pixel-into-sitecore-ecm.html 我尝试更改管道、类等。但总是显示此错误。

【问题讨论】:

    标签: sitecore sitecore-ecm


    【解决方案1】:

    在指定您的自定义处理器时,不要包含方法名称。将您的示例更改为:

    <SendEmail>
      <processor type="Namespace.ClassName,Assembly" />
    

    【讨论】:

    • 我试过了,没有添加方法名。但我面临同样的错误
    • 您的声明中很可能有错字
    【解决方案2】:

    您应该只在声明中使用 ClassName,而不是在末尾添加方法,例如

     <SendEmail>
          <processor type="Namespace.ClassName, Assembly" />
    

    process() 方法是流水线处理器的默认方法。如果您想使用 process 以外的其他方法,可以将 Method="yourmethod" 添加到声明中。

    【讨论】:

    • 您确定您的程序集已部署到 webroot 并且类和程序集名称正确吗?
    • 是的。我做了解决方案构建和发布,程序集名称也是正确的
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-07-27
    • 2013-07-28
    • 2018-08-10
    • 2023-03-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多