More in this section

Forums / Developing with Sitefinity / Events module throws exception when trying to edit event

Events module throws exception when trying to edit event

2 posts, 0 answered
  1. Dmitriy
    Dmitriy avatar
    2 posts
    Registered:
    07 Jun 2008
    27 Oct 2008
    Link to this post
    Exception: Unable to cast object of type 'System.Byte[]' to type 'System.String'
    Stack trace:
    [InvalidCastException: Unable to cast object of type 'System.Byte[]' to type 'System.String'.]
    Telerik.Cms.Engine.WebControls.Admin.ControlPanel.CreateEditForm(StagedContent currState) +890
    Telerik.Cms.Engine.WebControls.Admin.ControlPanel.CreateEditView() +414
    Telerik.Cms.Engine.WebControls.Admin.ControlPanel.CreateChildControls() +1132
    Telerik.Events.WebControls.Admin.ControlPanel.CreateEventsContentView() +34
    Telerik.Events.WebControls.Admin.ControlPanel.CreateChildControls() +243
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.WebControls.CompositeControl.RecreateChildControls() +24
    Telerik.Cms.Engine.WebControls.Admin.ControlPanel.set_Mode(Modes value) +724
    Telerik.Cms.Engine.WebControls.Admin.ControlPanel.grid_SelectedIndexChanged(Object sender, EventArgs e) +98
    System.Web.UI.WebControls.GridView.OnSelectedIndexChanged(EventArgs e) +146
    System.Web.UI.WebControls.GridView.HandleSelect(Int32 rowIndex) +90
    System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +197
    System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +207
    System.Web.UI.WebControls.GridView.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

    Does anyone know how to solve this?

  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    28 Oct 2008
    Link to this post
    Hello Dmitriy,

    The error sometimes occurs if you have custom meta field of type Byte in your templates. If this is the case please set it to - integer. If not please give us some more detailed information or steps to reproduce.

    Sincerely yours,
    Nikolay
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered