This is a migrated thread and some comments may be shown as answers.
Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors()
6 Answers 660 Views
This is a migrated thread and some comments may be shown as answers.
gupta gf
Top achievements
Rank 1
gupta gf asked on 20 Nov 2009, 10:44 AM

Hi,

          This is Hariprasad . In my project we use Telerik Controls very much. Recently i tried a sample related to my project according to the following link       http://demos.telerik.com/aspnet-ajax/xmlhttppanel/examples/loadingpanelid/defaultcs.aspx

 . Basing on Treeview selection , In code i am dynamically loading usercontrols on every Treeview Node click.

Then i am getting this following error.
 
XmlHttpPanel Callback Loading error:
 Exception=Script control 'RadWindowManager1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl


I already have ScriptManager in MasterPage.

I think this problem because of scriptmanager .

Can you please help me in this regard.

6 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 23 Nov 2009, 01:27 PM
Hi Hariprasad,

Try setting the RegisterWithScriptManager property of the RadWindowManager to false. When you place a RadControl (for ASP.NET AJAX) inside the RadXmlHttpPanel you need to set this property so that the control can work correctly.

If you want to use the client-side API of the control after the client callback or the WebService request, you need to set the EnableClientScriptEvaluation="true" property of the RadXmlHttpPanel.


All the best,
Pero
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
Pavel
Top achievements
Rank 1
answered on 17 Jun 2010, 09:36 AM
Hello,

I have an error in my solution. I can't fix it for many hours. I will thank you if you help me. I have a Silverlight control in web part.
I have placed this web part on the page. There are a forms authentication mode in my web project.  When I try to open this page as an anonymous user there is an ArgumentException with the message: "Script Control '...' is not registered Script Control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors()" where argument is my Silverlight control. But when I open this page as authenticated user this web part is displayed correctly without any errors. I cannot find a correct way to solve this problem. Could you help me?

Best regards,
Pavel Kolomeytsev
0
Pero
Telerik team
answered on 18 Jun 2010, 08:56 AM
Hi Pavel,

This is not a typical problem that could occur in a Silverlight application.

Are you by any chance using RadScriptManager on your page? If this is the case, you need to give access to its httpHandler, so it is available to all users, and just the authenticated users. This can be done by using the <location> Element to specify different authentication settings for the RadScriptManager's httpHandler. Please use similar code for your application as the one shown below, and if you have any problems, send us a sample project that demonstrates the issue. We would be glad to help.

Test either of the following:

  1. <location path="Telerik.Web.UI.WebResource.axd">
      <system.web>
        <authentication mode="None"></authentication>
      </system.web>
    </location>


  2. <location path="Telerik.Web.UI.WebResource.axd">
       <system.web>
         <authorization>
           <allow users="*"/>
         </authorization>
       </system.web>
     </location>


Kind regards,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Pavel
Top achievements
Rank 1
answered on 18 Jun 2010, 04:12 PM
Hi, Pero.

Thank you for reply.

I don't use RadScriptManager in this application. I have a Web Part and Silverlight control in it only. I've tried to use the <location> Element such as in your post, but it hasn't helped me. How can I send you the sample project? I can attach only images.

Best regards,
Pavel Kolomeytsev
0
Pero
Telerik team
answered on 23 Jun 2010, 09:49 AM
Hi Pavel,

You should open a new support ticket, to be able to attach files different than images. So, please open a new support thread for the respective control, and send us the project. If you are not sure for which control to open the ticket, please open it either in RadControls for ASP.NET AJAX or RadControls for Silverlight.

Regards,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
congdongdientu.
Top achievements
Rank 1
answered on 22 May 2018, 03:37 AM

Where setting guy?

RegisterWithScriptManager = "false";

Asked by
gupta gf
Top achievements
Rank 1
Answers by
Pero
Telerik team
Pavel
Top achievements
Rank 1
congdongdientu.
Top achievements
Rank 1
Share this question
or