Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl

4 posts, 0 answers
  1. vivek
    vivek avatar
    5 posts
    Member since:
    Jul 2009

    Posted 12 Jan 2010 Link to this post

    Hi,
    I am using RadToolbar with radttoolbarbutton on defautl.aspx page.OnClientButtonClicked, Radwindow form
    (manageuser.aspx) get open.but
    when i clicked save button inside Radwindow form(manageuser.aspx) then i get the following  error.how to fix it

    Script control 'RadWindowManager1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
    Parameter name: scriptControl

    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: Script control 'RadWindowManager1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
    Parameter name: scriptControl

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

     

    [ArgumentException: Script control 'RadWindowManager1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

    Parameter name: scriptControl]

       System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) +635960

       Telerik.Web.UI.RadWebControl.RegisterScriptDescriptors() +82

       Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +108

       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240

       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240

       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253

       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87

       System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53

       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240

       System.Web.UI.Page.Render(HtmlTextWriter writer) +38

       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +11020923

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240

     


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Jan 2010 Link to this post

    Hello,

    Checkout the following forum link which discussed same scenario.
    Script controls must be registered using RegisterScriptControl()

    Hope this help,
    Shinu.
  3. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 14 Jan 2010 Link to this post

    Hello vivek,

    The only thing I can assume without having your code is that you have missed to declare a ScriptManager before the manager is added to the page. If so, please note that script controls should be registered in the ScriptManager and this is the most probable reason for this error. Another option is that you are adding the manager in some event which is not suitable considering the page lifecycle but I cannot tell you the exact reason until I am able to see what is actually going on. Another problem could be caused by incorrect usage of AJAX.

    This being said, if the problem persists, please provide code on base of which a fully runnable reproduction page could be created and I will do my best to help.



    Regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  4. Trent
    Trent avatar
    7 posts
    Member since:
    Mar 2009

    Posted 31 Oct 2010 Link to this post


    Hello, my first post so likely wrong.

    You may be using the:

    <asp:ScriptManager>

    Instead of the:

    <telerik:RadScriptManager>

    Also, I find if you embed some AJAX controls in a table or other control that is made visible=false during the pre-render, this can also cause this error.

    Cheers,
Back to Top