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.
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?
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?
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
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!
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.
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].
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.
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?
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.
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/
Error in Application
After trying to follow the RenderTask Sample my Application does not start any more:
Any ideas?
Hi!
Did you update the namespace/class name of your custom render task?
// m
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
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
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
I found that in an older post from you.
Thank you once again for your quick replies.
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
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:
Trying to open the Newsletter tab in the content section leads to the following error:
/umbraco/backoffice/NewsletterStudio/SendContent/GetSendViewModelForNewsletter/ with data: {"section":"content","id":"1114"} Contact your administrator for information.
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:
Not all subscribers have values in the custom fields like [#salutation] [#fistName] [#lastName].
What can I do?
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
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
and tried to embed the placeholders
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?
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.
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!
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?
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
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!
Hi Markus,
no, my template was like this: [#salutation] [#firstName] [#lastName], No other placeholders were used.
Thanks for your effort.
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
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/
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.
Hi!
Nice! Did you reinstall?
If you didn't some config files and so might be corrupt so I would recommend a reinstall =D
You mean reinstall the Newsletter Studio package?
Is it not going to override any custom changes?
Hi!
It might do, but if everything works then you dont have to reinstall.
If you see other errors/issues - a reinstall is recommended.
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
is working on a reply...