Setting RadDockLayout - LayoutPersistenceRepositoryType='Custom' causes StackOverflow

2 posts, 0 answers
  1. Todd
    Todd avatar
    1 posts
    Member since:
    Aug 2013

    Posted 04 Sep 2013 Link to this post

    Testing out the abilities of the RadDockLayout control to persist state using EnableLayoutPersistence='True', and I've run into a bit of a snag..setting LayoutPersistenceRepositoryType='Custom' causes the following error in VS 2010 when debugging:

    An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

    However setting the property to Cookies, FileSystem or None allows the page to load correctly.  The ASPX code I'm using to test comes straight from Telerik's example (

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html>
    <html lang="en">
    <head runat="server">
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <telerik:RadDockLayout runat="server" ID="RadDockLayout1" EnableLayoutPersistence="true"
            LayoutPersistenceRepositoryType="Custom" LayoutRepositoryID="CustomLayout">
            <telerik:RadDockZone runat="server" ID="RadDockZone1" Width="300" MinHeight="200">
                <telerik:RadDock runat="server" ID="RadDock1" Title="RadDock 1" Width="300">
                <telerik:RadDock runat="server" ID="RadDock2" Title="RadDock 2" Width="300">
            <telerik:RadDockZone runat="server" ID="RadDockZone2" Width="300" MinHeight="200">

    There is no code-behind other than the page_init and the framework of the implemented IStateStorageProvider. 

    I'm stumped.  I rebooted to see is Win7 wasn't flaked out, but even that didn't work.  If I can supply any other info please let me know.

  2. Slav
    Slav avatar
    1351 posts

    Posted 09 Sep 2013 Link to this post

    Hello Todd,

    I am afraid that the provided information is not enough to determine what is causing the described problem. I have prepared a sample that uses the code from the help article on the matter with slight changes due to differences in the database that stores the dock state. Please check it and let me know if there are differences in the setup, compared to your actual project. You can also try debugging it on your end.

    If you are still having difficulties, please try modifying the attached sample in order to reproduce the problem or if this is not possible, send a simple, fully runnable project that isolates the issue so that I can inspect it locally and provide a more to the point answer.

    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 the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top