More in this section
Forums / General Discussions / "OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT" when trying to publish the page

"OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT" when trying to publish the page

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. James
    James avatar
    0 posts
    04 Aug 2015
    10 Jan 2017
    Link to this post

    We are experiencing an issue on our site that some times while publishing a page/content we are getting "OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT".  After checking all modules and logs we found that this issue comes from Sitefinity backend not from any of our modules. For the temporary fix we are restarting site from IIS and the error is gone and it allows to publish the site properly. 

    The main issue comes from Sitefinity side when it tries to refresh the old cache and stuck in it. Due to this reason when anybody hits on ”Publish” button it is throwing error of “Object Error” and not allow to save new data. It is not able to clear the old cache and not able to generate a new cache of pages/contents (or better to say not able to save new data). But it is not affecting front end site that works fine.

    I tried to find out why this is happening. I checked all logs when this issue came and found that none of our modules are throwing any error and found that Sitefinity’s internal code is throwing error which is as below.

    Timestamp: 09/01/2017 03:23:16

    Message: HandlingInstanceID: 809bf336-7274-4735-84f7-e02ee4bf8b54
    An exception of type 'System.NullReferenceException' occurred and was caught.
    01/09/2017 03:23:16
    Type : System.NullReferenceException, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : Object reference not set to an instance of an object.
    Source : Telerik.Sitefinity
    Help link : 
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Void CleanDeadReferences()
    HResult : -2147467261
    Stack Trace :    at Telerik.Sitefinity.Data.CacheDependencyHandler.CleanDeadReferences()
       at Telerik.Sitefinity.Data.CacheDependencyHandler.BackgroundWork(Action work)

    Additional Info:

    MachineName : 667231-VS06
    TimeStamp : 09/01/2017 03:23:16
    FullName : Telerik.Sitefinity.Utilities, Version=7.2.5320.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    AppDomainName : /LM/W3SVC/20/ROOT-1-131283596997318294
    ThreadIdentity : 

    Category: ErrorLog, Priority: 0, EventId: 9010, Severity: Warning, Title:Enterprise Library Exception Handling, Machine: 667231-VS06
    App Domain: /LM/W3SVC/20/ROOT-1-131283596997318294, ProcessId: 10292, Process Name: c:\windows\system32\inetsrv\w3wp.exe, 

    Thread Name: Win32 ThreadId:20084

    Extended Properties: 
    We have implemented the fix for this as per this KB ( but still the issue remains the same.

    If anybody has gone through such an issue and know fix for it then please share your thoughts in this.

    Many thanks in advance!!!!!

  2. James
    James avatar
    0 posts
    12 Dec 2016
    06 Apr 2017
    Link to this post
    no answer
  3. Beth
    Beth avatar
    29 posts
    30 Oct 2013
    25 Aug 2017
    Link to this post
    Did you ever get this sorted out? We are experiencing the same issues and can no longer sync/publish some content items.
3 posts, 0 answered