Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm running Umbraco 8. I have a quite simple scenario:
In component initialize I have:
ContentService.Published += OnPublishedPage;
Handler code looks like this:
// async doesn't work here and kills IIS
var response = _emailSender.SendUserDownloadEmailAsync(members, tender).GetAwaiter().GetResult();
Is there any workaround or could you please point me to the right direction?
Interesting. Can you ... try to replace whatever happens in SendUserDownloadEmailAsync by a simple await Task.Delay(100) and see whether it still causes the error?
In which case, the error is narrowed down to the async call. Otherwise, it might have to do with Sendgrid.
Now... do you have details about "the event handler kills IIS with Async Lock error" - is it the entire w3wp process that dies? Where do you see the error? In the Event Log or in Umbraco's log? Can we have the full details on the error?
Suspecting some threading issue with the async call...
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted