More in this section

Forums / Bugs & Issues / Object reference not set to an instance of an object.

Object reference not set to an instance of an object.

2 posts, 0 answered
  1. Kranthi
    Kranthi avatar
    6 posts
    19 May 2009
    02 Jun 2009
    Link to this post

    Hi all,

    One of my client has reported this error, i am trying to figure it out, but could not find any resolution nor reproduce the error, Can any one let me know what would be cause by the below Error description and Stack Trace.. 

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

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

    Source Error:


    Line 16:                  if (!IsPostBack && !String.IsNullOrEmpty(Request.QueryString["sfctrlid"]))

    Line 17:                  {

    Line 18:                           this.ControlEditor1.Select(new Guid(Request.QueryString["sfctrlid"]), Request.QueryString["sfdefclid"]);

    Line 19:                  }

    Line 20:

    Source File: c:\Inetpub\wwwroot\rwbeck_cms\Sitefinity\Admin\CtrlProps.aspx.cs   Line: 18

    Stack Trace:


    [NullReferenceException: Object reference not set to an instance of an object.]

       Telerik.Cms.Data.DefaultProvider.GetControl(Guid id, Boolean forEdit) +125

       Telerik.Cms.CmsManager.GetControl(Guid id, Boolean forEdit) +46

       Telerik.Cms.Web.UI.ControlEditor.get_CmsControl() +166

       Telerik.Cms.Web.UI.ControlEditor.CreateChildControls() +42

       System.Web.UI.Control.EnsureChildControls() +87

       System.Web.UI.WebControls.CompositeControl.RecreateChildControls() +21

       Telerik.Cms.Web.UI.ControlEditor.Select(Guid controlId, String defClientId) +55

       Admin_CtrlProps.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\rwbeck_cms\Sitefinity\Admin\CtrlProps.aspx.cs:18

       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15

       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34

       System.Web.UI.Control.OnLoad(EventArgs e) +99

       Telerik.Cms.Web.CmsPageBase.OnLoad(EventArgs e) +52

       System.Web.UI.Control.LoadRecursive() +47

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061




    Version Information: Microsoft .NET FrameworkVersion:2.0.50727.42; ASP.NET Version:2.0.50727.42

  2. Pepi
    Pepi avatar
    981 posts
    31 Jan 2017
    02 Jun 2009
    Link to this post
    Hello Kranthi,

    This error could be reproduced when multiple users are trying to edit the same page simultaneously:

    1. Log in Sitefinity administration as an administrator.
    2. Open a page and start editing it.
    3. Using another machine (or a different browser on the same machine), log in the CMS as another user with administrative rights.
    4. With this user open the same page. There will be a message that says: "User1 is editing this page. Save changes   Cancel changes"
    5. Click "Cancel changes" (while still editing the page as the first user).
    6. Now, when the first user clicks "Edit" on any control, or "I'm done" after editing one, the described exception will be thrown.

    For now we have no appropriate resolution for this problem.

    Best wishes,
    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.
2 posts, 0 answered