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

Forums / Bugs & Issues / Sitefinity Pages Section Error

Sitefinity Pages Section Error

4 posts, 0 answered
  1. liu
    liu avatar
    6 posts
    Registered:
    19 Apr 2011
    06 May 2011
    Link to this post
    Hi

           when I using a SF 3.7,after login ,Then goto the Dashboard but when I click the Pages ,following error info occur:


     

    Server Error in '/' Application.

    Data is Null. This method or property cannot be called on Null values.

    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.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.

    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:

    [SqlNullValueException: Data is Null. This method or property cannot be called on Null values.]
       MySql.Data.MySqlClient.MySqlDataReader.GetFieldValue(Int32 index, Boolean checkNull) +498
       MySql.Data.MySqlClient.MySqlDataReader.GetString(Int32 column) +41
       Nolics.ORMapper.DataProviders.SQLDataProvider.ParseResult(Int32 fromRow, Int32 maxRows, DataSet dsResult, IDataReader rd) +228
       Telerik.DataAccess.MySQLProvider.ExecQuery(DataSet queries, Int32& totalCount) +755
       Telerik.DataAccess.Providers.PagingQuery`1.Load(Int32 maxElements, Int32 fromElement, Int32& totalRows) +463
       Telerik.Cms.Data.DefaultProvider.GetAllPages(Int32 from, Int32 maxRows, String sortExpr, IList`1 filter, Int32& totalRows) +731
       Telerik.Cms.CmsManager.GetPages(Int32 from, Int32 maxRows, String sortExpr, ListSortDirection sortDirection, IList`1 filter, Int32& totalRows) +231
       Telerik.Cms.Web.UI.PagesDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1453
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +27
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +261
       Telerik.Cms.Web.UI.ManagePagesGrid.OnPreRender(EventArgs e) +240
       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.Control.PreRenderRecursiveInternal() +224
       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
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.5444; ASP.NET Version:2.0.50727.5420


    beside,but the Modules ,Files and  Administration and Files works fine,when click Templates ,following Error Msg:

    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:

    Line 28:                             </HeaderTemplate>
    Line 29:                             <ItemTemplate>
    Line 30: <li><asp:HyperLink ID="pageLink" runat="server" ToolTip='<%# DataBinder.Eval(Container.DataItem, "Name") %>' Text='<%# DataBinder.Eval(Container.DataItem, "Name")%>'></asp:HyperLink></li>Line 31:                             </ItemTemplate>
    Line 32:                             <FooterTemplate>

    Source File: C:\inetpub\wwwroot\Sitefinity37Test\Sitefinity\Admin\ControlTemplates\PageTemplates\TemplatesGrid.ascx Line: 30

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Cms.Data.PageContentBase.get_Name() +15
    
    [TargetInvocationException: Property accessor 'Name' on object 'Telerik.Cms.Data.CmsPageContent' threw the following exception:'Object reference not set to an instance of an object.']
       System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) +7152216
       System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +96
       System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) +148
       ASP.sitefinity_admin_controltemplates_pagetemplates_templatesgrid_ascx.__DataBinding__control19(Object sender, EventArgs e) in C:\inetpub\wwwroot\Sitefinity37Test\Sitefinity\Admin\ControlTemplates\PageTemplates\TemplatesGrid.ascx:30
       System.Web.UI.Control.OnDataBinding(EventArgs e) +132
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +170
       System.Web.UI.Control.DataBindChildren() +11045679
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +182
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +674
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +68
       Telerik.Cms.Web.UI.TemplatePages.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +578
       System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +72
       System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +147
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +261
       Telerik.Cms.Web.UI.TemplatesGrid.grid_RowDataBound(Object sender, GridViewRowEventArgs e) +322
       System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +282
       System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +3340
       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
       Telerik.Cms.Web.UI.TemplatesGrid.OnPreRender(EventArgs e) +43
       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.Control.PreRenderRecursiveInternal() +224
       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
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.5444; ASP.NET Version:2.0.50727.5420



    Thanks,
    Lucio
  2. liu
    liu avatar
    6 posts
    Registered:
    19 Apr 2011
    06 May 2011
    Link to this post
    Can you help me to have a look  of this issue, first the issue is like the following  issues http://www.sitefinity.com/devnet/forums/sitefinity-3-x/bugs-issues/dashboard-causing-error-in-custom-module.aspx,now only the Page Section have errors


    Hope to receive your reply


    Thanks,
    Lucio
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 May 2011
    Link to this post
    Hello liu,

    Have you made any changes to the database? The error indicates for an issue with your page templates. It looks like you have removed a template reference from a page and this is why the binding fails.

    Best wishes,
    Ivan Dimitrov
    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
  4. liu
    liu avatar
    6 posts
    Registered:
    19 Apr 2011
    06 May 2011
    Link to this post
    Thanks for your reply,when I debug ,following code cause the exception:


    Sitefinity/Admin/Pages.aspx.cs  line 69

    .......
           else
                {
                    selectRoot = true;
                }
                if (selectRoot)
                {
                    this.pageEditor.Select(Guid.Empty);----cause error
                    this.siteMap.SelectedPageID = Guid.Empty;
          .....      }

    but when I have a pageId,no error occur ,this is strange....  Thanks
Register for webinar
4 posts, 0 answered