This is a migrated thread and some comments may be shown as answers.

Setting RadDockLayout - LayoutPersistenceRepositoryType='Custom' causes StackOverflow

1 Answer 32 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 04 Sep 2013, 05:32 PM
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 (http://www.telerik.com/help/aspnet-ajax/introduction.html):

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<html lang="en">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <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>
            <telerik:RadDock runat="server" ID="RadDock2" Title="RadDock 2" Width="300">
            </telerik:RadDock>
        </telerik:RadDockZone>
        <telerik:RadDockZone runat="server" ID="RadDockZone2" Width="300" MinHeight="200">
        </telerik:RadDockZone>
    </telerik:RadDockLayout>
    </form>
</body>
</html>

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.

Todd

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 09 Sep 2013, 11:19 AM
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.

Regards,
Slav
Telerik
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.
Tags
Dock
Asked by
Todd
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or