Copied to clipboard

Flag this post as spam?

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


  • Brad Ford 34 posts 75 karma points
    Jul 05, 2013 @ 05:58
    Brad Ford
    0

    Could not load type 'NewsletterStudio.Services.RenderTask' from assembly

    Having just bought the NewsletterStudio licence I have hit a snag my project.

    First, I installed Newsletter Studio from within Umbraco and tested it out before and after adding the licence. It worked great.

    Now down to the task at hand, I have get into the RenderTasks to cusomise my Newsletters.

    First I downloaded the sample project mentioned in this YouTube video and added it to my Solution. 

    Then without changing anything I compiled the project and copied the compiled DLL to the main projects bin folder.

    Running the site and the whole thing is broken with this error.

    Could not load type 'NewsletterStudio.Services.RenderTask' from assembly

    What is the problem here?

    For the record I am using Umbraco 6.1.1

    Cheers.

     

     

     

     

     

  • Brad Ford 34 posts 75 karma points
    Jul 05, 2013 @ 06:14
    Brad Ford
    0

    Some further info.

    I noticed that the newsletter.dll file in the sample project was version 1.2.0 while the version of the dll in the main install project is 1.3.5. So I copied the later dll to the sample project. 

    When i did this the project complained that RenderTasks did not exist in this class declaration.

    public class CustomRenderTask : RenderTask

    So I added this to the 'using' statments.

    using NewsletterStudio.Services.RenderTasks;

    Now the error is..
    Error    1    'Company.NewsletterStudio.CustomRenderTask' does not implement inherited abstract member 'NewsletterStudio.Services.RenderTasks.RenderTask.ProcessPreRender(NewsletterStudio.Services.RenderTasks.RenderResult, NewsletterStudio.Services.RenderTasks.RenderTaskParameters)'    Y:\Thirteen\UmbracoModules\NewsletterStudio\CustomRenderTask.cs    11    18    Company.NewsletterStudio

    Let the image speak for itself.

     

     

     




     

     

     

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Jul 05, 2013 @ 11:45
    Markus Johansson
    0

    Hi!

    Thank you for brining this to notice! The API changed in version 1.3 due to some major changes in the underlaying data model. So when you changed the reference to a newer version it breaks. You'll need to use the new declaration of the ProcessPreRender-method. The new declaration looks like this:

    public abstract void ProcessPreRender(RenderResult renderResult, RenderTaskParameters parameters); 

    I'm going to try to change the example code.

    Cheers! 

Please Sign in or register to post replies

Write your reply to:

Draft