Copied to clipboard

Flag this post as spam?

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


  • Edgar Rasquin 85 posts 292 karma points
    Nov 21, 2017 @ 16:02
    Edgar Rasquin
    0

    Error in Application

    After trying to follow the RenderTask Sample my Application does not start any more:

    Could not load all types from "Company.NewsletterStudio, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping:
    
    RenderTask Der Typ "NewsletterStudio.Services.RenderTask" in der Assembly "NewsletterStudio, Version=2.1.9.1, Culture=neutral, PublicKeyToken=null" konnte nicht geladen werden.
    

    Any ideas?

  • Markus Johansson 1523 posts 4273 karma points
    Nov 21, 2017 @ 16:11
    Markus Johansson
    0

    Hi!

    Did you update the namespace/class name of your custom render task?

    // m

  • Edgar Rasquin 85 posts 292 karma points
    Nov 21, 2017 @ 16:41
    Edgar Rasquin
    0

    Hi Markus,

    I have done everything step by step as described in your Video. Now that the error occurs I have tried removing the assembly and reset the entry in the config file, hoping this would let me start my application again.

    But I cannot get around that error. Can you think of a way to reset so that my project starts?

    Thanks

    Edit: It seemed to be a cache problem. No that I've used a different browser all starts again.

    Question: Is this still the right way to go with custom render tasks when working with Umbraco version 7.7.3? Can I embed/replace custom member fields this way?

    Thanks

  • Markus Johansson 1523 posts 4273 karma points
    Nov 22, 2017 @ 09:02
    Markus Johansson
    0

    Hi!

    Have you also named your project "Company.NewsletterStudio"? There is a config-line in the /config/newsletterStudio.config-file (a render task) that should point to a valid class.

    Something most be wrong with that configuration, if you remove it the error will go away but your render task will not work.

    If you did follow the video step by step it should work, but that would mean that you have a class called Company.NewsletterStudio.MyRenderTask.

    How does your configuration line for the render task look?

    Documentation can be found here: http://support.newsletterstudio.org/customer/en/portal/articles/1052872-control-content-with-render-tasks

  • Edgar Rasquin 85 posts 292 karma points
    Nov 22, 2017 @ 09:11
    Edgar Rasquin
    0

    Hi Markus,

    thank you very much for your reply. As I mentioned in my post yesterday I removed the assembly and removed the line from the config file so everything is working fine. Since I'm only trying to render a custom field from my members, I realised that I can achiev mthis much easier by just using a placeholder like so

    [#salutationLong]
    

    I found that in an older post from you.

    Thank you once again for your quick replies.

  • Markus Johansson 1523 posts 4273 karma points
    Nov 22, 2017 @ 10:26
    Markus Johansson
    0

    Hi!

    Ahh, great to hear that you found that solution! =D

    We do have a item in out backlog to include this in the rich text editor in the future so that it will be more clear - but since this is dependent on which mailing list you choose to send to there are some stuff that needs to be figured out before we can include it.

    Please let me know if you have any other questions or issues!

    // m

  • Edgar Rasquin 85 posts 292 karma points
    Nov 23, 2017 @ 11:31
    Edgar Rasquin
    0

    Hi Markus,

    today I tried to publish my site. The Newsletter Studio does not work. When I try to open the NS section I get the following error:

    

    ×
    Request error: The URL returned a 404 (not found):
    /umbraco/backoffice/NewsletterStudio/DashboardData/GetMainDashboardViewModel/
    ×
    Resc. file not loaded
    ×
    Request error: The URL returned a 404 (not found):
    /umbraco/backoffice/NewsletterStudio/Localization/GetAll
    ×
    Request error: The URL returned a 404 (not found):
    /umbraco/backoffice/NewsletterStudio/Localization/GetAll
    ×
    Request error: The URL returned a 404 (not found):
    /umbraco/backoffice/NewsletterStudio/Localization/GetAll
    ×
    Request error: The URL returned a 404 (not found):
    /umbraco/backoffice/NewsletterStudio/Localization/GetAll
    ×
    Request error: The URL returned a 404 (not found):
    /umbraco/backoffice/NewsletterStudio/Localization/GetAll
    

    Trying to open the Newsletter tab in the content section leads to the following error:

     Request error: The URL returned a 404 (not found):
    

    /umbraco/backoffice/NewsletterStudio/SendContent/GetSendViewModelForNewsletter/ with data: {"section":"content","id":"1114"} Contact your administrator for information.

  • Edgar Rasquin 85 posts 292 karma points
    Dec 19, 2017 @ 14:37
    Edgar Rasquin
    0

    Hi Markus,

    I am experiencing problems when I'm trying to send Newsletters with custom fields. Emails bounce with the following error when the addressed member has an empty value in the custom field:

    Object reference not set to an instance of an object.<br/> at NewsletterStudio.Services.RenderTasks.Tasks.InsertCustomDataRenderTask.GetCustomData(Match match) at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat) at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator) at NewsletterStudio.Services.RenderTasks.Tasks.InsertCustomDataRenderTask.ProcessUniqueItem(RenderResult renderResult, RenderTaskUniqueItemParameters parameters) at NewsletterStudio.Services.RenderTasks.RenderEngine.Render(EmailTrackingItem emailTrackingItem, MailMessage message) at NewsletterStudio.Services.RenderTasks.RenderEngine.RenderNewMessage(EmailTrackingItem item) at NewsletterStudio.Services.SendNewsletterService.SendEmails()
    

    Not all subscribers have values in the custom fields like [#salutation] [#fistName] [#lastName].

    What can I do?

  • Markus Johansson 1523 posts 4273 karma points
    Dec 19, 2017 @ 14:47
    Markus Johansson
    0

    Hi!

    Hmm... not sure why this is happening - I would have to do some debugging.

    I could share the code for the render task if you are in a hurry?

    // m

  • Edgar Rasquin 85 posts 292 karma points
    Dec 19, 2017 @ 14:53
    Edgar Rasquin
    0

    I did not code a render task. I am sending from the umbraco member group. I added custom fields in the member type with the alias

    salutation, firstName, lastName
    

    and tried to embed the placeholders

    [#salutation] [#firstName] [#lastName],
    

    It works just fine. But when of the field values is empty it does not send out and throws the error above.

    Any idea why?

  • Edgar Rasquin 85 posts 292 karma points
    Dec 19, 2017 @ 14:55
    Edgar Rasquin
    0

    Sorry, I am in a hurry. Therefore I did not read your post proberly. And so, yes please share the code for the render task.

    Thank you.

  • Markus Johansson 1523 posts 4273 karma points
    Dec 19, 2017 @ 16:23
    Markus Johansson
    0

    Hi!

    Its a simple implementation, I guess you could add a try/catch or something to avoid this error.

    The code is here: https://gist.github.com/enkelmedia/47936872d00c98c2f06afbe1197c80d5

    You would need to change the namespace and reconfigure the render task in your /config/newsletterStudio.config-file.

    More info about here found here: http://support.newsletterstudio.org/customer/en/portal/articles/1052872-control-content-with-render-tasks

    I've filed a bugreport for this and will provide a fix in the core but I guess that if you need this right away your best option is to create your own render task for this.

    Let me know if you have any questions or need any help.

    Sorry about this issue!

    Cheers!

  • Edgar Rasquin 85 posts 292 karma points
    Dec 20, 2017 @ 07:52
    Edgar Rasquin
    0

    Markus,

    thank you for the code. I will have a look into that.

    Thanks a lot for taking your time to check and filing the bugreport. Could you please let me know as soon as there is a fix? Is there a link where I could check for myself?

  • Markus Johansson 1523 posts 4273 karma points
    Dec 20, 2017 @ 08:50
    Markus Johansson
    0

    Hi!

    I will post a note here in the forum when there is a fix included in a release.

    You can always see all the new releases on www.newsletterstudio.org.

    Cheers!

    // m

  • Markus Johansson 1523 posts 4273 karma points
    Dec 20, 2017 @ 22:40
    Markus Johansson
    0

    Hi again!

    A small question, could it be that you have a empty placeholder like this:

    [#]

    Somewhere in your code?

    I'm almost done with a fix here but I just wanted to know as this was the only way that I could reproduce the error that you got - if the member had an empty value for the property that error was not thrown.

    Cheers!

  • Edgar Rasquin 85 posts 292 karma points
    Dec 21, 2017 @ 05:15
    Edgar Rasquin
    0

    Hi Markus,

    no, my template was like this: [#salutation] [#firstName] [#lastName], No other placeholders were used.

    Thanks for your effort.

  • Markus Johansson 1523 posts 4273 karma points
    Dec 21, 2017 @ 09:06
    Markus Johansson
    0

    I see! Thanks for letting me know!

    If you would like to have a hotfix for this, I could send you a link to the new ddls - just let me know =D

    // m

  • Markus Johansson 1523 posts 4273 karma points
    Nov 23, 2017 @ 12:00
    Markus Johansson
    100

    Hi!

    Must have been something that went wrong during the installation?

    What version of Umbraco and of Newsletter Studio are you running?

    Did you get any errors? Can you see anything in the tracelog?

    9 out of 10 cases this is due to write permissions issues, either to the database (create tables etc) or to the file system (create folders etc in /app_plugins/ and /config/

  • Edgar Rasquin 85 posts 292 karma points
    Nov 23, 2017 @ 13:00
    Edgar Rasquin
    0

    Hi Markus,

    you were right. When publishing the site I forgot to set the modify permission for the IUSR and the IIS_IUSRS users.

    After restart of the site in IIS everything seems to work just fine.

    Thank you for the hint.

    Have a nice day.

  • Markus Johansson 1523 posts 4273 karma points
    Nov 23, 2017 @ 13:04
    Markus Johansson
    0

    Hi!

    Nice! Did you reinstall?

    If you didn't some config files and so might be corrupt so I would recommend a reinstall =D

  • Edgar Rasquin 85 posts 292 karma points
    Nov 23, 2017 @ 13:06
    Edgar Rasquin
    0

    You mean reinstall the Newsletter Studio package?

    Is it not going to override any custom changes?

  • Markus Johansson 1523 posts 4273 karma points
    Nov 23, 2017 @ 13:09
    Markus Johansson
    0

    Hi!

    It might do, but if everything works then you dont have to reinstall.

    If you see other errors/issues - a reinstall is recommended.

  • Markus Johansson 1523 posts 4273 karma points
    Feb 16, 2018 @ 16:19
    Markus Johansson
    0

    HI!

    A fix for the issue with empty parameters is included in the latest release of the package 2.1.9.2:

    https://www.newsletterstudio.org/download/

    // m

Please Sign in or register to post replies

Write your reply to:

Draft