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
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);
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.
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.
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!
is working on a reply...