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

Forums / Bugs & Issues / Error while deleting a template

Error while deleting a template

4 posts, 0 answered
  1. ritesh
    ritesh avatar
    1 posts
    Registered:
    13 May 2009
    14 May 2009
    Link to this post
    I am just started learning sitefinity. I created a new project. In the Pages-->Templates subsection, I created a new template and tried deleting it. When I hit the delete button, I get an error. Below is the 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
  2. Stoyanka Assenova
    Stoyanka Assenova avatar
    113 posts
    Registered:
    01 Dec 2016
    15 May 2009
    Link to this post
    Hi ritesh,

    We know for this problem. It will be fixed in the Sitefinity 3.6 SP2. The release will be live soon.

    All the best,
    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.
  3. Lino
    Lino avatar
    45 posts
    Registered:
    06 May 2005
    17 May 2009
    Link to this post
    Hi Stoyanka,

    Any work around for now? until the patch is available?

    Thanks
    -Lino
  4. Stoyanka Assenova
    Stoyanka Assenova avatar
    113 posts
    Registered:
    01 Dec 2016
    18 May 2009
    Link to this post
    Hello Lino,

    I regret to inform you that, we cannot provide you with temporarily workaround. The release will be live  tomorrow.

    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.
Register for webinar
4 posts, 0 answered