Object reference not set to an instance of an object. RRS feed

  • Question

  • Hi all,

     I am working on a website created using sharepoint 2010. ihave some subssites in the main site

    my site looks like this

    mainpage   resources   staff    library   - this is a ribbon

    when i clicked on resources tab it will open and showing some word documents whateveer saved under resources tab.

    when i clicked on manage site content then i am getting this message. I am not sure why this coming .

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

    can anybody help me to fix this please.

    thank you very much

    • Edited by ausla11 Wednesday, January 25, 2012 4:25 AM
    Wednesday, January 25, 2012 4:05 AM

All replies

  • Hi.

    Could you add some info from the ULS log from when the error happens as well?
    14 Hive/LOGS...


    Thomas Balkeståhl - Technical Specialist - SharePoint -
    Wednesday, January 25, 2012 6:02 AM
  • Hi,

    From the error message, please check if you have deployed any features or solutions on your site, if so, please look into the code in Visual Studio 2010, make sure they are all correct.

    For more information about why you get this error, see


    Rock Wang

    Rock Wang TechNet Community Support
    Wednesday, January 25, 2012 9:30 AM
  • Hi Balken,

    I had a website created using sharepoint 2010. I had a main page like

    MasterPage,   Resources,   Publications (these all are the tabs i mean subsites/workspaces)

    whenever i clicked on resources it is opening it contained some word documents.

    in resources page i clicked on site Actions->manage content and structure i am getting this message. I don't know how to solve this.

    Anybody can help me please.

    I am pasting the full stack trace here. Thanks alot.

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

    [NullReferenceException: Object reference not set to an instance of an object.]
    Microsoft.SharePoint.Publishing.Internal.WebControls.ObjectSerializer.DeleteAllowed(Boolean checkPermissions) +459
    Microsoft.SharePoint.Publishing.Internal.WebControls.SmtButtonField.FormatDataValue(Object dataTextValue, Boolean encode) +876
    System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) +161
    Microsoft.SharePoint.Publishing.Internal.WebControls.SmtButtonField.OnDataBindField(Object sender, EventArgs e) +8
    System.Web.UI.Control.OnDataBinding(EventArgs e) +131
    System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +169
    System.Web.UI.Control.DataBindChildren() +11058975
    System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +182
    System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +267
    System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +3340
    Microsoft.SharePoint.WebControls.SPGridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +87
    System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +72
    System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +18
    System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +147
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +261
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
    System.Web.UI.WebControls.GridView.OnPreRender(EventArgs e) +46
    System.Web.UI.Control.PreRenderRecursiveInternal() +108
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Control.PreRenderRecursiveInternal() +224
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

    Friday, January 27, 2012 1:02 AM