We are trying to publish a document at a future date by using the Publish At functionality in version v
4.5.2 (Assembly version: 1.0.3940.18543). When the scheduled task is triggered the document is not published, and the following error message appears in the umbracolog table:
Error publishing node: System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.content.UpdateDocumentCache(Document d) at umbraco.content.UpdateDocumentCache(Int32 pageId) at umbraco.library.UpdateDocumentCache(Int32 DocumentId) at umbraco.library.PublishSingleNode(Int32 DocumentId) at umbraco.presentation.publishingService.CheckPublishing(Object sender)
From what I have read on the forums, this issue appeared in an earlier version of Umbraco, but since then no mention of the issue.
I downloaded the source code for version 4.5.2, and it seems the exception occurs in the umbraco.library.content class on line 434. The code is trying to clear the cached field values from the HttpContext cache. But for some reason the HttpContext.Current is null, thus an exception is thrown when the Cache property of HttpContext.Current is references. The only reason why the Current property would be null is if the class is invoked not from a web application, which I assume is the case.
Is there a work around for this issue? Is the configuration not set up correctly, thus causing the exception?
Thanks for your help!
Umbraco Version: v 4.5.2 (Assembly version: 1.0.3940.18543)
ASP.NET Version: 2.0
Windows and IIS version: Windows XP/Windows 2008 and IIS 6.0 and IIS 7.0
Error message: Error publishing node: System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.content.UpdateDocumentCache(Document d) at umbraco.content.UpdateDocumentCache(Int32 pageId) at umbraco.library.UpdateDocumentCache(Int32 DocumentId) at umbraco.library.PublishSingleNode(Int32 DocumentId) at umbraco.presentation.publishingService.CheckPublishing(Object sender)
In our development and test environments we don't use distributed calls, but in our live environment we do use it. But the error occurs in all environments.
Publish document at a certain time failure
Hi,
We are trying to publish a document at a future date by using the Publish At functionality in version v 4.5.2 (Assembly version: 1.0.3940.18543). When the scheduled task is triggered the document is not published, and the following error message appears in the umbracolog table:
Error publishing node: System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.content.UpdateDocumentCache(Document d) at umbraco.content.UpdateDocumentCache(Int32 pageId) at umbraco.library.UpdateDocumentCache(Int32 DocumentId) at umbraco.library.PublishSingleNode(Int32 DocumentId) at umbraco.presentation.publishingService.CheckPublishing(Object sender)
From what I have read on the forums, this issue appeared in an earlier version of Umbraco, but since then no mention of the issue.
I downloaded the source code for version 4.5.2, and it seems the exception occurs in the umbraco.library.content class on line 434. The code is trying to clear the cached field values from the HttpContext cache. But for some reason the HttpContext.Current is null, thus an exception is thrown when the Cache property of HttpContext.Current is references. The only reason why the Current property would be null is if the class is invoked not from a web application, which I assume is the case.
Is there a work around for this issue? Is the configuration not set up correctly, thus causing the exception?
Thanks for your help!
It might be worth opening a ticket on codeplex if this is a bug - are you using Distributed Calls at all?
http://umbraco.codeplex.com/
In our development and test environments we don't use distributed calls, but in our live environment we do use it. But the error occurs in all environments.
is working on a reply...