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

Forums / General Discussions / Object reference not set ...

Object reference not set ...

4 posts, 0 answered
  1. Andrew
    Andrew avatar
    202 posts
    Registered:
    05 Jun 2009
    17 Jan 2013
    Link to this post
    I can no longer edit my custom modules items. When i click on the edit button, All custom module items now show with an error message: Object reference not set to an instance of an object.

    I have not done anything to this web page for over 6 months. 

    It might be related to an update on the server. Perhaps it's some sort of version problem.

    How can i find out what the problem is and how to fix it?
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    02 Dec 2016
    22 Jan 2013
    Link to this post
    Hi Andrew,

    I'm sorry to hear about the issues you're experiencing with your custom modules.

    By default a Sitefinity project or module would nto change its behavior unless some external change has been made either to the precompiled code ( a dll has been changed), the configuration files have been modified (under App_Data/Sitefinity/Configuration) either manually or by changing a setting under the Administration backend section, the web.config has been changed, or some of the values in the DB have been modified manually.

    In order to make sure we're giving you the best advice we'll need to collect some additional information, namely:

    1. Can you paste us the stack trace of the exception you're receiving
    2. Is this a custom (created through code) module, or one created using the Module Builder (I see this post has been marked as one for Sitefinity 3.x so if that is indeed the case, please disregard this part of my question)
    3. Have there been any of the above described changes to the project configurations, and can you please verify if the module configuration is correct?

    Looking forwards to your response.

    Kind regards,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Alex
    Alex avatar
    7 posts
    Registered:
    11 Oct 2012
    14 Mar 2013
    Link to this post
    Hi there Boyan,

    I'm getting the same error as @Andrew has faced.

    My stack trace is:

    [NullReferenceException: Object reference not set to an instance of an object.]
    Telerik.Sitefinity.Web.UI.ContentUI.ContentViewControlDefinition.GetDefaultMasterView() +111
    Telerik.Sitefinity.Web.UI.ContentUI.ContentView.DetermineCurrentViewName() +529
    Telerik.Sitefinity.Web.UI.ContentUI.ContentView.CreateChildControls() +94
    System.Web.UI.Control.EnsureChildControls() +102
    System.Web.UI.Control.PreRenderRecursiveInternal() +42
    System.Web.UI.Control.PreRenderRecursiveInternal() +175
    System.Web.UI.Control.PreRenderRecursiveInternal() +175
    System.Web.UI.Control.PreRenderRecursiveInternal() +175
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

    The module that I've created is a custom one based on your tutorials available here (http://www.sitefinity.com/documentation/documentationarticles/developers-guide/sitefinity-essentials/modules/creating-custom-modules/creating-products-module).

    Followed on all the remarks that were pointed out in the tutorial.

    The module is installed in SiteFinity's backend and if I go to SiteFinity backend --> Content --> Choose my custom module I get 'Object reference not set to an instance of an object.' error.

    Any help would be appreciate :)



  4. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    19 Mar 2013
    Link to this post
    Hi Alex,

    Did the module used to work and than at some point you started receiving the error? Have you made any changes to the config files or upgraded recently? Additionally which version of Sitefinity are you using? Please take a look at the following thread for a possible solution. 

    Greetings,
    Pavel Benov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered