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

Forums / Developing with Sitefinity / Template Issue.

Template Issue.

3 posts, 1 answered
  1. Daniel
    Daniel avatar
    62 posts
    Registered:
    20 Apr 2009
    02 Feb 2011
    Link to this post
    Hi Sitefinity!

    I have an issue where whenever I click on the templates tab in the admin area I get a runtime error the error is below:

    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 02/02/2011 12:00:48
    Event time (UTC): 02/02/2011 12:00:48
    Event ID: ba819f707ef14ccb9ca499325bb6c92d
    Event sequence: 22
    Event occurrence: 7
    Event detail code: 0
      
    Application information:
        Application domain: /LM/W3SVC/1/Root/EBusiness-2-129411206254511250
        Trust level: Full
        Application Virtual Path: /EBusiness
        Application Path: E:\Program Files\telerik\Sitefinity3.5 Community\WebSites\EBusiness before Upgrade to Standard\
        Machine name: WIN2003SRV
      
    Process information:
        Process ID: 6620
        Process name: w3wp.exe
        Account name: WIN2003SRV\Administrator
      
    Exception information:
        Exception type: TargetInvocationException
        Exception message: Property accessor 'Name' on object 'Telerik.Cms.Data.CmsPageContent' threw the following exception:'Object reference not set to an instance of an object.'
      
    Request information:
        Request path: /ebusiness/sitefinity/admin/Templates.aspx
        User host address: 192.168.20.14
        User: admin
        Is authenticated: True
        Authentication Type: Forms
        Thread account name: WIN2003SRV\Administrator
      
    Thread information:
        Thread ID: 8
        Thread account name: WIN2003SRV\Administrator
        Is impersonating: False
        Stack trace:    at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
       at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName)
       at System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts)
       at System.Web.UI.DataBinder.Eval(Object container, String expression)
       at ASP.sitefinity_admin_controltemplates_pagetemplates_templatesgrid_ascx.__DataBinding__control19(Object sender, EventArgs e)
       at System.Web.UI.Control.OnDataBinding(EventArgs e)
       at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
       at System.Web.UI.Control.DataBind()
       at System.Web.UI.Control.DataBindChildren()
       at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
       at System.Web.UI.Control.DataBind()
       at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
       at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
       at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
       at System.Web.UI.WebControls.Repeater.DataBind()
       at Telerik.Cms.Web.UI.TemplatePages.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
       at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
       at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
       at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
       at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
       at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
       at Telerik.Cms.Web.UI.TemplatesGrid.grid_RowDataBound(Object sender, GridViewRowEventArgs e)
       at System.Web.UI.WebControls.GridView.OnRowDataBound(GridViewRowEventArgs e)
       at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource)
       at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
       at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
       at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
       at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
       at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
       at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
       at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
       at System.Web.UI.WebControls.GridView.DataBind()
       at Telerik.Cms.Web.UI.TemplatesGrid.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
      
      
    Custom event details:
     
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    I think it maybe to do with that I deleted a template out of the file structure quite sometime ago and the record still exists in the database but obviously not in the file structure.

    If this is the case what records will i need to delete and from which tables.

    Thanks for help in advance

    Daniel
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    02 Feb 2011
    Link to this post
    Hello Daniel,

    It seems like the problem is caused by lost reference between a master page and a given page. You can try to execute the following query to your database


    select * from sf_PageContentBase  
    where id not in (select ID from dbo.sf_PageBase)

    If there are any results return from the query it would be better to perform a DELETE operation. Then you have to recreate the page you are going to delete from sf_PageContentBase.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Daniel
    Daniel avatar
    62 posts
    Registered:
    20 Apr 2009
    02 Feb 2011
    Link to this post
    Thanks Ivan

    That has sorted the issue

    Thanks for you quick response.

    Dan
Register for webinar
3 posts, 1 answered