Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nandoh 32 posts 104 karma points
    Feb 25, 2015 @ 19:10
    Nandoh
    0

    Exception thrown when 'AddTrackingPixelRenderTask' is configured

    Hello,

    I'm using Umbraco 7.2.1 and find out that the RenderTask 'AddTrackingPixelRenderTask' causes an Exception when previewing or sending out the newsletter. The error is the same in both cases:

    Exception Details: System.ArgumentNullException: Value cannot be null.

    Parameter name: type

    [ArgumentNullException: Value cannot be null. Parameter name: type] System.Activator.CreateInstance(Type type, Boolean nonPublic) +10706950 System.Activator.CreateInstance(Type type) +6 NewsletterStudio.Services.RenderTasks.RenderEngine.TaskFromType(String type) +16 NewsletterStudio.Services.RenderTasks.RenderEngine.GetRenderTasks() +191 NewsletterStudio.Services.RenderTasks.RenderEngine.RenderPreview() +49 NewsletterStudio.AppPlugins.NewsletterStudio.Pages.NewsletterRender.RenderPreviewOf(Int32 newsletterId) +110 NewsletterStudio.AppPlugins.NewsletterStudio.Pages.NewsletterRender.Page_Load(Object sender, EventArgs e) +151 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

    If I remove the 'AddTrackingPixelRenderTask' from the newsletterStudio.config everything works great, except that we can't track if the subscriber already opened the newsletter.

    Do you know what can cause this behavior?

    Thanks

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Feb 25, 2015 @ 19:20
    Markus Johansson
    0

    Hi!

    What version of newsletter studio are you running?  

    I have not seen this issue before... doses it work when you perform a "real" send out?

    Did you change anything in the config file prior to this issue? 

    // m 

  • Nandoh 32 posts 104 karma points
    Feb 26, 2015 @ 16:33
    Nandoh
    0

    Hello,

     

    The NewsletterStudio version is 2.1.0 (Newsletter_Studio_2.1.0 (For Umbraco 7).zip uploaded 9/28/2014) downloaded from the project page

    I had problems installing the NewsletterStudio due to the Umbraco's Config folder permissions. As a result, the configuration sections "emailRenderingTasks" and "subscriptionProviders" was empty after the installation. When I saw your video of the Demo at uHangout, I checked which renderingTasks and subscriptionproviders that was supposed to be configured.

    Right now, I have the following renderingTasks and subscriptionProviders:

    <emailRenderingTasks>

          <clear />

          <task name="AddTrackingPixelRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddTrackingPixelRendertask, NewsletterStudio" />

          <task name="FitIntoTemplateRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.FitIntoTemplateRenderTask, NewsletterStudio" />

          <task name="RenderUrlRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.RenderUrlRenderTask, NewsletterStudio" />

          <task name="ReplaceUnsubscribeRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceUnsubscribeRenderTask, NewsletterStudio" />

          <task name="ReadOnlineRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReadOnlineRenderTask, NewsletterStudio" />

          <task name="ReplaceLocalLinksRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceLocalLinksRenderTask, NewsletterStudio" />

          <task name="AddFullDomainToRelativeSrcsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddFullDomainToRelativeSrcsRenderTask, NewsletterStudio" />

          <task name="ReplaceRelativeLinksRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceRelativeLinksRenderTask, NewsletterStudio" />

          <task name="GoogleAnalyticsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.GoogleAnalyticsRenderTask, NewsletterStudio" />

          <task name="AddClickTagsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddClickTagsRenderTask, NewsletterStudio" />

          <task name="ReplaceUniqMergeFieldsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceUniqMergeFieldsRenderTask, NewsletterStudio" />

       </emailRenderingTasks>

       <subscriptionProviders>

          <clear />

          <provider name="NewsletterStudioSubscriptionProvider" type="NewsletterStudio.Bll.Providers.NewsletterStudioSubscriptionProvider, NewsletterStudio" />

       </subscriptionProviders>

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Mar 02, 2015 @ 20:15
    Markus Johansson
    100

    Hi!

    The issue is that the class name is incorrect. 

    <task name="AddTrackingPixelRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddTrackingPixelRendertask, NewsletterStudio" /> 

    Should be:

    <task name="AddTrackingPixelRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddTrackingPixelRenderTask, NewsletterStudio" /> 

    With a capital T in the end of the class name.

    I tip would have been to install newsletter studio in a clear Umbraco site and just copy/paste the content of the config file. But, here the complete list of render tasks:

             <emailRenderingTasks>

                <task name="AddTrackingPixelRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddTrackingPixelRenderTask, NewsletterStudio" />

       <task name="AddTrackingPixelRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddTrackingPixelRendertask, NewsletterStudio" />

                <task name="FitIntoTemplateRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.FitIntoTemplateRenderTask, NewsletterStudio" />

                <task name="ReplaceUnsubscribeRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceUnsubscribeRenderTask, NewsletterStudio" />

                <task name="ReadOnlineRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReadOnlineRenderTask, NewsletterStudio" />

                <task name="ReplaceLocalLinksRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceLocalLinksRenderTask, NewsletterStudio" />

                <task name="AddFullDomainToRelativeSrcsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddFullDomainToRelativeSrcsRenderTask, NewsletterStudio" />

                <task name="RenderUrlRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.RenderUrlRenderTask, NewsletterStudio" />

                <task name="ReplaceRelativeLinksRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceRelativeLinksRenderTask, NewsletterStudio" />

                <task name="GoogleAnalyticsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.GoogleAnalyticsRenderTask, NewsletterStudio" />

                <task name="AddClickTagsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.AddClickTagsRenderTask, NewsletterStudio" />

                <task name="ReplaceUniqMergeFieldsRenderTask" type="NewsletterStudio.Services.RenderTasks.Tasks.ReplaceUniqMergeFieldsRenderTask, NewsletterStudio" />

            </emailRenderingTasks>

  • Nandoh 32 posts 104 karma points
    Mar 03, 2015 @ 19:17
    Nandoh
    0

    Thank you very much Markus, that was the problem :)

    Now it's working and tracking the newsletter openings :)

Please Sign in or register to post replies

Write your reply to:

Draft