Script Control 'xyzMenuControl' is not a registered script control

5 posts, 0 answers
  1. chirag
    chirag avatar
    29 posts
    Member since:
    Jan 2008

    Posted 17 Jun 2008 Link to this post

    Hi,

    I have been using Menu ASP .NET RadControl from RadMenu.Net2.dll.
    That worked fine.

    Now, I'm trying to update this control with latest ASP .NET AJAX RadMenu control from Telerik.Web.UI.dll.

    The requirements and exceptions came up to me as it will require ScriptManager before RadControl is used in the code and ScriptManager in turn requires Form Tag with RunAt server.

    I have done that which lands me with this kind of exception.
    System.ArgumentException: Script control 'xnaMenu' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
    Parameter name: scriptControl


    Anybody has faced this similar problem? I do see similar exception reported on RadDock control and Telerik team provided another new dll as temporary solution. So, what was changed in the DLL? I would like to know if I can overcome same thing in my code, or I need new temporary DLL from telerik :)

    Thanks,
    Chirag
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 18 Jun 2008 Link to this post

    Hi Chirag,

    I'm afraid I'm missing a point here.

    Basically the error you described happens when the RegisterScriptControl method of an IScriptControl has not been called. Can you please, give us some more directions about the project/page setup (e.g. control structure, RadMenu location, etc.).

    A simple project/website, demonstrating the problem would help us identify the problem quicker. If you can prepare one, please, open a formal support ticket to be able to attach it.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. chirag
    chirag avatar
    29 posts
    Member since:
    Jan 2008

    Posted 21 Jun 2008 Link to this post

    Hey,

    I had problem in my code itself. So, I fixed it. The control was not in control hierarchy and so the prerender was not getting executed.

    Thanks,
    Chirag
  4. umar okeeffe
    umar okeeffe avatar
    19 posts
    Member since:
    Dec 2009

    Posted 24 Feb 2011 Link to this post

    I have this error as well. It is occurring only when I deploy to my production server. I cannot debug on the production. It otherwise works in my test environment which is really frustrating. What do you mean its not part of the control hierarchy. For me this error occurs on a partial page postback.

    Edit: these are sharepoint servers
  5. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 01 Mar 2011 Link to this post

    Hi,

    Probably you will find helpful the following forum post:

    http://www.aspplayground.net/forum/Script-control-39RM139-is-not-a-registered-script-control-m402006.aspx

    Regards,
    Helen
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top