Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors()

6 posts, 0 answers
  1. gupta gf
    gupta gf avatar
    6 posts
    Member since:
    Aug 2009

    Posted 20 Nov 2009 Link to this post


    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.
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 23 Nov 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pavel
    Pavel avatar
    2 posts
    Member since:
    Jun 2010

    Posted 17 Jun 2010 Link to this post

    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
  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 18 Jun 2010 Link to this post

    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
  6. Pavel
    Pavel avatar
    2 posts
    Member since:
    Jun 2010

    Posted 18 Jun 2010 Link to this post

    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
  7. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 23 Jun 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017