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
Hi there, i am facing a very strange issue and i cannot figure out a solution.
On ContentService_Published event i am trying to get the Url of the published content. So i am calling the
to get the published content and retrieve the Url value. The strange thing is that with debugging and Quick Watch in the object i can see the values. In the code as soon as i am trying to get a value of a property i am getting null reference excrption. I open again the Quick Watch and the property value exists. See the attached pictures.
The problem finally is with the async method and the Task Factory.
When i remove that part of code everything works fine. So, how can i call an async method within the ContentService Published method?
Hi, how did you attach ContentService_Published method to the event?
Publish with Descendants does not trigger ContentService.Published event
Check out below link, it will helpful https://github.com/umbraco/Umbraco-CMS/issues/9167
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted