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

Unknown Error

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
reza
Top achievements
Rank 1
reza asked on 07 Aug 2011, 11:07 AM
hi
I have a user control that is ajaxified by RadAjaxManagerProxy ,
I've also used a ToolTipManager that is ajaxified by setting it's OnAjaxUpdate property

It works well on page , but if I put this UserControl inside a ContentTemplate of a RadWindow in RadWindowManager
like this : 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="True"
        Skin="Office2010Blue">
        <Windows>
            <telerik:RadWindow ID="ContainerBrowser" runat="server" Title="Container Browser"
                Modal="true" Behaviors="Maximize,Close,Minimize,Move,Resize">
                <ContentTemplate>
                    <uc3:SkinBrowser ID="SkinBrowser1" runat="server" SkinType="Container" /> <<-- my user control
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

I get this error : 




Cannot unregister UpdatePanel with ID 'ToolTipManager1RTMPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 


Exception Details: System.ArgumentException: Cannot unregister UpdatePanel with ID 'ToolTipManager1RTMPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel


Source Error: 




[No relevant source lines]
 


Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\rezaportal\4357407d\cc28616b\App_Web_zdvdvisy.0.cs    Line: 0 


Stack Trace: 




[ArgumentException: Cannot unregister UpdatePanel with ID 'ToolTipManager1RTMPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel]
   System.Web.UI.PageRequestManager.UnregisterUpdatePanel(UpdatePanel updatePanel) +521276
   System.Web.UI.ScriptManager.System.Web.UI.IScriptManagerInternal.UnregisterUpdatePanel(UpdatePanel updatePanel) +49
   System.Web.UI.UpdatePanel.OnUnload(EventArgs e) +2515910
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +241
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Page.UnloadRecursive(Boolean dispose) +23
   System.Web.UI.Page.ProcessRequestCleanup() +43
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.portalmanager_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\rezaportal\4357407d\cc28616b\App_Web_zdvdvisy.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


 




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 






I really have no idea to fix this problem
Thank you very much for your help

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 08 Aug 2011, 11:52 AM
Hello Reza,

What I would recommend is that you take out this RadWindow from the RadWIndowManager and place it directly in the page and not in the Windows collection. The origin of this server error lies in the fact that there are UpdatePanels in the content that you have placed in the RadWindow and they cannot be unregistered when the Windows collelction is renewed. This issues is actually not directly related to the RadWIndow and for more information about this error please examine the following KB article: http://www.telerik.com/support/kb/aspnet-ajax/window/cannot-unregister-updatepanel-with-id-updatepanelid-since-it-was-not-registered-with-the-scriptmanager.aspx.


All the best,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
reza
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or