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

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

3 Answers 2456 Views
Window
This is a migrated thread and some comments may be shown as answers.
vivek
Top achievements
Rank 1
vivek asked on 12 Jan 2010, 08:12 AM
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

 


3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Jan 2010, 11:56 AM
Hello,

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

Hope this help,
Shinu.
0
Svetlina Anati
Telerik team
answered on 14 Jan 2010, 03:23 PM
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.
0
Trent
Top achievements
Rank 1
answered on 01 Nov 2010, 03:55 AM

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,
Tags
Window
Asked by
vivek
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Svetlina Anati
Telerik team
Trent
Top achievements
Rank 1
Share this question
or