We are using Newsletter Studio with Umbraco Members.
When scheduling a newsletter sometimes the member groups are not shown.
Adding a space to the web.config seems to allow them to show again
When scheduling it appears that sometimes it loses the member list as well and we get an error as below:
I've set the umbracoApplicationUrl in umbracoSettings.config as it sits behind a firewall that doesn't allow unless via VPN and this seems to be working.
An ideas?
Errors below-
2018-02-02 07:01:15,234 [P1272/D2/T24] INFO umbraco.BusinessLogic.Log - Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: ScheduledTask | User: 0 | NodeId: 0 | Comment: NewsletterStudio: ScheduledTask. Started thread to send newsletter "Newsletter Test" (id 1420)
2018-02-02 07:01:15,265 [P1272/D2/T29] INFO umbraco.BusinessLogic.Log - Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: 0 | Comment: NewsletterStudio: Cound not load subscription-provider: UmbracoNewSubscriptionProvider, type: NewsletterStudio.Bll.Providers.UmbracoNewSubscriptionProvider, NewsletterStudio. Are you sure that the type exsists? Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at NewsletterStudio.Bll.Providers.UmbracoNewSubscriptionProvider..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at NewsletterStudio.Bll.Providers.SubscriptionProviderFactory.GetProviders()
2018-02-02 07:01:15,265 [P1272/D2/T26] INFO umbraco.BusinessLogic.Log - Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: 0 | Comment: NewsletterStudio, SendNewsletterService: Sequence contains no matching element : at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate)
at NewsletterStudio.Bll.Providers.SubscriptionProviderFactory.GetReceiversBySubscriptionAlias(String value, SendOutParams parameters)
at NewsletterStudio.Services.EmailTrackingItemService.CreateTrackingItems()
at NewsletterStudio.Services.SendNewsletterService.SendEmails()
The members go missing at random intervals. By missing I mean the circled area is not there when going to send an email immediately, or scheduling for later.
Editing the main web.config seems to bring them back?
So you mean that the list of Member Groups are empty at random times?
Is there a way to replicate this or does it just happen randomly? The list is populated using the Umbraco API when the page is loaded so it's hard to say why this is happening... =/
Thanks for sharing the trace log. I looks like the constructor of the UmbracoNewSubscriptionProvider fails to load and the result of this attempt is then cached until the next app-pool reset.
In the constructor we're just getting the memberservice and the membergroupservice, I'm not really sure why this happens at random times.
OR does this happen all the time for you? I've tested but I can't reproduce the issue which makes it hard to debug. Any clues around this would be great - are you sure that your Umbraco site is loaded or might it be that the app pool has been recycled and that Umbraco has not been initialized?
Here we're using a surface controller to send insteed of the old .aspx-file. This solved the issue with the Umbraco-dependencies that was returning null.
Please give it a try and let me know if it works =D
Issue with scheduled send out and Umbraco Members
We are using Newsletter Studio with Umbraco Members.
When scheduling a newsletter sometimes the member groups are not shown.
Adding a space to the web.config seems to allow them to show again
When scheduling it appears that sometimes it loses the member list as well and we get an error as below:
I've set the umbracoApplicationUrl in umbracoSettings.config as it sits behind a firewall that doesn't allow unless via VPN and this seems to be working.
An ideas?
Errors below-
2018-02-02 07:01:15,234 [P1272/D2/T24] INFO umbraco.BusinessLogic.Log - Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: ScheduledTask | User: 0 | NodeId: 0 | Comment: NewsletterStudio: ScheduledTask. Started thread to send newsletter "Newsletter Test" (id 1420)
2018-02-02 07:01:15,265 [P1272/D2/T29] INFO umbraco.BusinessLogic.Log - Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: 0 | Comment: NewsletterStudio: Cound not load subscription-provider: UmbracoNewSubscriptionProvider, type: NewsletterStudio.Bll.Providers.UmbracoNewSubscriptionProvider, NewsletterStudio. Are you sure that the type exsists? Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at NewsletterStudio.Bll.Providers.UmbracoNewSubscriptionProvider..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at NewsletterStudio.Bll.Providers.SubscriptionProviderFactory.GetProviders() 2018-02-02 07:01:15,265 [P1272/D2/T26] INFO umbraco.BusinessLogic.Log - Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: 0 | Comment: NewsletterStudio, SendNewsletterService: Sequence contains no matching element : at System.Linq.Enumerable.First[TSource](IEnumerable
1 source, Func
2 predicate) at NewsletterStudio.Bll.Providers.SubscriptionProviderFactory.GetReceiversBySubscriptionAlias(String value, SendOutParams parameters) at NewsletterStudio.Services.EmailTrackingItemService.CreateTrackingItems() at NewsletterStudio.Services.SendNewsletterService.SendEmails()Hi Rob!
Does this only happen for scheduled newsletter? How do you mean that the "groups are not shown"? Where are they not shown?
This error NewsletterStudio: Cound not load subscription-provider: UmbracoNewSubscriptionProvider, type: NewsletterStudio.Bll.Providers.UmbracoNewSubscriptionProvider, NewsletterStudio.
Indicates that something is wrong with the configuration for the subscriptions providers. There is a default configuration here that you can look at: https://gist.github.com/enkelmedia/17f569bb04886a8b4ab1b2bddcb09bff
Hope that this helps.
Hi Markus,
The members go missing at random intervals. By missing I mean the circled area is not there when going to send an email immediately, or scheduling for later.
Editing the main web.config seems to bring them back?
I'm using the default config (below)
Hi!
So you mean that the list of Member Groups are empty at random times?
Is there a way to replicate this or does it just happen randomly? The list is populated using the Umbraco API when the page is loaded so it's hard to say why this is happening... =/
// m
Question:
Are you sure that this line is always the same?
No build configuration etc that changes this?
I would like you to have a look in the trace-log when this happens next time to see if we can get any clues from any error that might happen.
Yes config is the always the same.
Next time it happens I'll send over the full trace log for you to review.
Thanks Rob!
Sorry for this issue, we'll make sure to figure out what's wrong and solve it together.
Cheers!
Hi Markus,
Same issue again - I've emailed you the full trace log.
Hi!
Thanks for sharing the trace log. I looks like the constructor of the UmbracoNewSubscriptionProvider fails to load and the result of this attempt is then cached until the next app-pool reset.
In the constructor we're just getting the memberservice and the membergroupservice, I'm not really sure why this happens at random times.
OR does this happen all the time for you? I've tested but I can't reproduce the issue which makes it hard to debug. Any clues around this would be great - are you sure that your Umbraco site is loaded or might it be that the app pool has been recycled and that Umbraco has not been initialized?
// m
Hi!
An update on this one, I've managed to reproduce your issue.
We'll have to provide a fix for this in the next release, which should be something like a week away.
// m
Great - Thanks Markus! :)
Hi!
A new release is out: https://www.newsletterstudio.org/download/
Here we're using a surface controller to send insteed of the old .aspx-file. This solved the issue with the Umbraco-dependencies that was returning null.
Please give it a try and let me know if it works =D
is working on a reply...