+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / error after upgrade

error after upgrade

15 posts, 0 answered
  1. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    22 Aug 2009
    Link to this post
    Hi,
    I upgraded from 3.6 to 3.7 last week and today I noticed that when I click any library in "images and documents" module, i get an error. Any idea?

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Libraries.WebControls.Admin.LibraryItemList.InitializeControls(Control viewContainer) +1407
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +101
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    23 Aug 2009
    Link to this post
    Hello Rabindra,

    The only thing that I can tell from this stack trace is that some of the controls under InitializeControls throws a null reference exception which means that it cannot be found( it is null).

    Have you made any changes to the templates in Library module and especially LibraryItemList? Any manual changes to the database related to removing libraries or content items from a library?

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    23 Aug 2009
    Link to this post
    I haven't made any changes to anything related to library module.

    How can I fix this problem? or can you give a sql script to reset the library module.?

  4. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    23 Aug 2009
    Link to this post
    I deleted all my libraries and tried to create new one.
    I gave name of the library and clicked "create this library". I get the same error.
    But if i click back and to Images & documents, i can see the new library created.
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    23 Aug 2009
    Link to this post
    Hello Rabindra,

    Could you run the following select query against your database?

    use YOUR_DATABASE_NAME 
     
    Select * from sf_CmsContentBase 
     
    where ParentID not inselect ID from sf_Libraries) AND Application = '/Libraries' 

    If there are any results this means that you have an item in sf_CmsContentBase that is not associated with any ParentID and this item should be removed. If the problem persists, create a backup of your project and database, open a new support request, send the backup to us and we will debug the project locally.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    23 Aug 2009
    Link to this post
    I ran the query and there were no results. (0 rows affected)




  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    24 Aug 2009
    Link to this post
    Hi Rabindra,

    Please send the project to us as requested in the previous post.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Elena
    Elena avatar
    3 posts
    Registered:
    15 Jan 2009
    15 Sep 2009
    Link to this post
    Hi everyone,

    I have the same issue after upgrading to 3.7. I ran the query above and there is no record returned.
    Can you please tell me what needs to be done in order to fix the issue?

    Thank you,
    Elena
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    15 Sep 2009
    Link to this post
    Hi Elena,

    If possible send us your project. We cannot tell you for sure what is causing the error above. Also include the Sitefinity.log with the exact error message and stack trace.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. Elena
    Elena avatar
    3 posts
    Registered:
    15 Jan 2009
    15 Sep 2009
    Link to this post
    Hi Ivan,

    Thank you for your quick replay. The issue has been fixed.
    We were using customizatiom for LibraryItemList.ascx and in the custom code we were missing the Group Operations functionality. My guess is this is what was causing the error.

    Elena

  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    16 Sep 2009
    Link to this post
    Hi Elena,

    Yes, the template has been changed and group operations are required. We implemented this functionality with 3.7 and it will be extended in 4.0.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  12. Jon Ingersoll
    Jon Ingersoll avatar
    32 posts
    Registered:
    12 May 2009
    05 Oct 2009
    Link to this post
    We are also having this issue on every server we have upgraded to 3.7

    I don't believe that we have customized the Libraries in anyway, but I cannot find the file "LibraryItemList.ascx" anywhere to check.  Where is this file?

  13. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    05 Oct 2009
    Link to this post
    Hi Jon Ingersoll,

    "LibraryItemList.ascx" is an external template. The other user was map the template and then customized it, but group operations was not included in his template.

    If the problem persists open a support ticket and attach a sample project where we could reproduce the problem.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  14. Jon Ingersoll
    Jon Ingersoll avatar
    32 posts
    Registered:
    12 May 2009
    05 Oct 2009
    Link to this post
    Ivan,

    Our Sitefinity installs are customized to authenticate using our Central Authentication Service. You wouldn't be able to run our code.

    Do you have any other suggests on what we could do to track down this issue? It only appears to be happening with the libraries module.

    -Jon
  15. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    07 Oct 2009
    Link to this post
    Hello Jon Ingersoll,

    What about the suggestion that we had - 
    "LibraryItemList.ascx" is an external template. The other user mapped the template and then customized it, but group operations was not included in his template."

    Have you tried using the built in template, or the default one from the External Templates archive of Sitefinity 3.7SP1?

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
15 posts, 0 answered