More in this section

Forums / Developing with Sitefinity / Delete Master Page

Delete Master Page

2 posts, 0 answered
  1. Andrei
    Andrei avatar
    553 posts
    Registered:
    27 Nov 2008
    27 May 2009
    Link to this post
    Hi,

    I am evaluating the latest version of Sitefinity 3.6 .NET 3.5 I am trying to delete a Master Page from the list of Templates and I am getting the below error page.

    Server Error in '/Jersey' Application.

    Unable to cast object of type 'Telerik.Cms.Data.PageTemplate' to type'Telerik.Cms.Data.CmsTemplateContent'.

    Description:An unhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about the error andwhere it originated in the code.

    Exception Details:System.InvalidCastException: Unable to cast object of type'Telerik.Cms.Data.PageTemplate' to type'Telerik.Cms.Data.CmsTemplateContent'.

    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:

    [InvalidCastException: Unable to cast object of type 'Telerik.Cms.Data.PageTemplate' to type 'Telerik.Cms.Data.CmsTemplateContent'.]   Telerik.Cms.Web.UI.PageTemplatesDataSourceView.ExecuteDelete(IDictionary keys, IDictionary oldValues) +1123   System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary oldValues, DataSourceViewOperationCallback callback) +89   System.Web.UI.WebControls.GridView.HandleDelete(GridViewRow row, Int32 rowIndex) +714   System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +869   System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) +95   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37   System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) +123   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082;ASP.NET Version:2.0.50727.3082 


    Is this a bug or am I doing something wrong?

    Thanks.

    Andrei
  2. Stoyanka Assenova
    Stoyanka Assenova avatar
    113 posts
    Registered:
    01 Dec 2016
    27 May 2009
    Link to this post
    Hello Andrei,

    This issue appears in the Sitefinity 3.6 SP1 Hotfix (version - 1927).This issue has been fixed in Sitefinity 3.6 SP2 (version - 1936). We would recommend you to upgrade your project with the latest Sitefinity version (Sitefinity 3.6 SP2). You could upgrade it by replacing the files in the bin folder.

    Sincerely yours,
    Stoyanka Assenova
    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