Cannot convert object of type 'System.String' to type 'System.String[]

3 posts, 0 answers
  1. Laurentiu
    Laurentiu avatar
    9 posts
    Member since:
    Oct 2008

    Posted 05 Jan 2012 Link to this post

    In a project with non ajax / ajax controls ( Q3 2008  version ) I want to create a master page for ajax controls.
    I get the error below when I set
    PersistStateInCookie="true" to the 'telerik:RadPanelBar' control .
    If I set PersistStateInCookie = "false"   it is working but it doesn't keep my selection.

     <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" Scrolling="None" 
          Width="180px" Style="margin0pxpadding0px" BorderWidth="0px" OnClientPaneDocked="SlidePaneDocked"
              OnClientPaneUnDocked="SlidePaneUnDocked" Index="0">
                                
          <asp:ContentPlaceHolder ID="contentLeft" runat="server">
          </asp:ContentPlaceHolder>
     
          
          <asp:UpdatePanel ID="upMaster" runat="server" UpdateMode="Conditional">            <ContentTemplate>                <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="upMaster" DynamicLayout="true"                                         runat="server">                  <ProgressTemplate>                          (...loading)                   </ProgressTemplate>                </asp:UpdateProgress>                
                    <div style="floatleft">                        <telerik:RadPanelBar ID="leftPanels" runat="server" Height="100%" ExpandMode="SingleExpandedItem" Width="180px" 
                            PersistStateInCookie="true" />                 </div>            </ContentTemplate>       </asp:UpdatePanel>    </telerik:RadSlidingPane>
    [InvalidOperationException: Cannot convert object of type 'System.String' to type 'System.String[]']
       System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer) +305914
       System.Web.Script.Serialization.ObjectConverter.ConvertObjectToType(Object o, Type type, JavaScriptSerializer serializer) +192
       System.Web.Script.Serialization.ObjectConverter.AssignToPropertyOrField(Object propertyValue, Object o, String memberName, JavaScriptSerializer serializer) +284
       System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer) +1349
       System.Web.Script.Serialization.ObjectConverter.ConvertObjectToType(Object o, Type type, JavaScriptSerializer serializer) +192
       System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(String input) +66
       Telerik.Web.UI.RadPanelBar.LoadState(String state) +152
       Telerik.Web.UI.RadPanelBar.LoadStateFromCookie() +257
       Telerik.Web.UI.RadPanelBar.OnPreRender(EventArgs e) +60
       System.Web.UI.Control.PreRenderRecursiveInternal() +108
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

    Thank you
    Laurentiu
  2. Laurentiu
    Laurentiu avatar
    9 posts
    Member since:
    Oct 2008

    Posted 08 Jan 2012 Link to this post

    Any suggestion is welcome.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 10 Jan 2012 Link to this post

    Hello Laurentiu,

    Unfortunately we no longer provide support to the Q3 2008 version of the Telerik controls. Please refer to our Support Lifecycle Policy here for more details.

    Greetings,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top