Sys.InvalidOperationException: Type Telerik.Web.BoxSide has already been registered.

27 posts, 0 answers
  1. LEVENT CAMLIBEL
    LEVENT CAMLIBEL avatar
    3 posts
    Member since:
    Mar 2007

    Posted 21 Dec 2007 Link to this post

    I receive the following error when I use Prometheus 2007 Q3

    Microsoft JScript runtime error: Sys.InvalidOperationException: Type Telerik.Web.BoxSide has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. A possible cause is a change of settings during a partial update.

    I have a web page with one grid. after populating the grid, I receive the error above.

    I am using Visual 2008 RTM.
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 21 Dec 2007 Link to this post

    Hello Levent,

    Is it possible that you are loading user controls dynamically and use RadScriptManager to replace the regular ScriptManager and combine the scripts served on tha page? There was an issue in such scenario with the last Futures build of RadControls Prometheus which should be fixed for the official Q3 2007 release.

    Alternatively, you may test whether replacing RadScriptManager with normal ScriptManager eliminates the exception.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. LEVENT CAMLIBEL
    LEVENT CAMLIBEL avatar
    3 posts
    Member since:
    Mar 2007

    Posted 21 Dec 2007 Link to this post

    Hello Stephen
    I replaced  RadScriptManager with normal ScriptManager and it eliminated the exception.

  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 21 Dec 2007 Link to this post

    Hi Levent,

    As my colleague suggested, please download the Prometheus Q3 release and update your Telerik.Web.UI assembly. Please use assemblies from the bin35 folder which have been compiled against the 3.5 version of the framework for best compatibility with VS2008 you are using. This should resolve the problem you have encountered.

    Regards,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. LEVENT CAMLIBEL
    LEVENT CAMLIBEL avatar
    3 posts
    Member since:
    Mar 2007

    Posted 21 Dec 2007 Link to this post

    That's the problem. this is what I am doing.
  7. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 21 Dec 2007 Link to this post

    Hi Levent,

    We have this problem reported by several other customers of ours but we are still not able to reproduce it on our side. Is it possible for you to prepare and small application and send it to us so that we try reproducing it locally?

    Once we are able to have the problem on our side, we will do our best to find the fix for it immediately.

    In the meantime you can set the script combination off by setting the EnableScriptCombine to false. This should remove the error, but it also disables the benefit of the script combination.

    I'm looking forward to your reply.

    Best regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Rainz
    Rainz avatar
    25 posts
    Member since:
    Nov 2005

    Posted 24 Dec 2007 Link to this post

    Wondering if any progress has been made on this issue,

    thanks
  9. Jeff
    Jeff avatar
    33 posts
    Member since:
    Sep 2006

    Posted 26 Dec 2007 Link to this post

    I am having this issue as well. I have replaced the radscriptmanager with the asp scriptmanager. It seems to have eliminated the javascript errror. But I am also encountering and issue where the menu on the left disappears after and item is clicked. This has occurred after updating to the Q3 version from December.
  10. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 27 Dec 2007 Link to this post

    Hi guys,

    We're still unable to reproduce the "Type Telerik.Web.BoxSide has already been registered" problem. This is a very strange problem, as we tried that on several test machines here and we did not get the problem on any of them. We tried several projects we got from you and still the pages worked fine regarding the BoxSide issue on our side.

    Please, find attached a sample project we used. Can you please elaborate a bit, check what we are missing and possibly change it so that it has the "BoxSide" error?

    Thanks in advance.

    Best regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  11. Rainz
    Rainz avatar
    25 posts
    Member since:
    Nov 2005

    Posted 27 Dec 2007 Link to this post

    Tried this with VS 2005 and Vista.

    Getting this script error:
    Line: 113
    Error: 'Telerik' is undefined

    So can't even get past this step to reproduce the BoxSide error
  12. kchoateclc
    kchoateclc avatar
    1 posts
    Member since:
    May 2007

    Posted 27 Dec 2007 Link to this post

    Hopefully this is a useful clue.

    I get this exact same error, but only on pages that 1. Use a master page and 2. Are in a folder below the root of my webapp.
  13. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 28 Dec 2007 Link to this post

    Hi guys,

    Thank you for all the efforts. Unfortunately we are still unable to have the same problem on our side - we tried Vista, XP and Windows Server 2003 with Visual Studio 2005 and Visual Studio 2008. We added two pages to the application - one with a master page containing the RadScriptManager instance and one with a simple master page, where RadScriptManager was declared in the content page itself. We tried running the pages both in the root application and as a child web application - still to no avail.

    We're still searching for the problem.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  14. Blaize
    Blaize avatar
    88 posts
    Member since:
    Oct 2006

    Posted 28 Dec 2007 Link to this post

    Hi guys,
    reading this thread something popped in my head. I remember I had a problem with the script registrations several months ago. I had it solved by downloading and installing the latest ajax extensions then - I vaguely remember there was some kind of a difference in the ajax releases which had the same version. Wish you all a Happy New Year!

    Cheers,
    Blaize
  15. Rainz
    Rainz avatar
    25 posts
    Member since:
    Nov 2005

    Posted 28 Dec 2007 Link to this post

    one other scenario to test is:

    aspx (no masterpage needed) with a usercontrol, where the user control contains a prometheus combobox.

    radscriptmanager on the aspx with default settings.

    this is the scenario where i'm able to generate the error. 

    Using VS 2008 on Vista
  16. MW
    MW avatar
    4 posts
    Member since:
    Apr 2007

    Posted 29 Dec 2007 Link to this post

    First thing, Rainz, the error you got is because you are using Vista which has IIS7 installed... I was having the same problem.. It is because the WebResource HttpHandler is not properly registered. To register it properly on vista you need declare it in the <system.webServer> section in you web config. For example:
    <system.webServer> 
       <handlers> 
           <add name="WebResourceHandler" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" /> 
       </handlers> 
    </system.webServer> 

     That should fix it...

    And regarding the subject of this thread:
    I am able to always reproduce the above problem of the "Sys.InvalidOperationException: Type Telerik.Web.BoxSide has already been registered"
    It happens when I try to use the ajaxtoolkit extenders in the same page as the rad controls. For example I was trying to use the CollapsiblePanelExtender with a RadGrid in the same page and when using the new RadScriptManager I always get that error... If I remove the
    CollapsiblePanelExtender it works just fine. So I suspect the problem is with that.
  17. Rainz
    Rainz avatar
    25 posts
    Member since:
    Nov 2005

    Posted 31 Dec 2007 Link to this post

    Thanks for the help MW but when I try adding that, I get a "Telerik is undefined" error, and the Prometheus controls display incorrectly (in this case the combobox) - below you can see the <handlers> section inside <system.webServer>

    <

    handlers>

    <

    add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

    <

    add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

    <

    add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

    <

    add name="WebResourceHandler" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />

    </

    handlers>

  18. Steve Kinyon
    Steve Kinyon avatar
    9 posts
    Member since:
    Feb 2007

    Posted 04 Jan 2008 Link to this post

    This is the scenario that should reproduce it:

    Master Page in the Root
     - Contains RadScriptManager

    Content Page in the Root
     - Contains RadScriptManagerProxy
     - Has a Rad control (in my case, the RadScheduler)
     - Has no error, no problems

     Content Page in a subfolder of the Root
     - Contains RadScriptManagerProxy
     - Has a Rad control (in my case, the RadScheduler)
     - Has error: "Sys.InvalidOperationException: Type Telerik.Web.BoxSide has already been registered."

    I have one calendar for viewing, and another in a password protected subfolder for editing.  When I moved the editing page into the subfolder to protect it, that's when the error appeared.

    Changing to the MS ScriptManager fixed the problem.
  19. Blaize
    Blaize avatar
    88 posts
    Member since:
    Oct 2006

    Posted 07 Jan 2008 Link to this post

    Hi guys, I just found a new build fixing the BoxSide problem here. Check it out.
    Cheers,
    Blaize
  20. The Oracle
    The Oracle avatar
    46 posts
    Member since:
    Aug 2012

    Posted 25 Jun 2008 Link to this post

    Hey Erjan--

    Did you guys ever figure this out?  It happens with many, many situations, where the r.a.d.Control seems to be the culprit, but is not.  I found some good clues in this link.

    Graeme
  21. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 30 Jun 2008 Link to this post

    Hi Graeme,

    Yes, we were able to reproduce the problem on our side and fixed the problem for the first service pack release of the suite.

    Thank you very much for sharing the link!

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  22. Adam L. Ooten
    Adam L. Ooten avatar
    86 posts
    Member since:
    Sep 2005

    Posted 18 Aug 2008 Link to this post

    Is this supposed to be fixed in the new Q2 release?  I am still having the problem with this version.
  23. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 19 Aug 2008 Link to this post

    Hello Adam,

    What is the exact issue you experience with the Q2 release? Could you send us a sample code which demonstrates the problem to examine it locally?

    Regards,
    Helen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  24. Mark
    Mark avatar
    9 posts
    Member since:
    Jul 2008

    Posted 12 Jun 2009 Link to this post

    I also have this problem and have become quite annoyed with the amount of bugs Telerik controls cause my applications.

    I have a rad ajax panel that seems to be trying to re-add my PageMethod.  When it does this, it throws this exception in the MS Ajax js and which is causing tons of other javascript on the page to break. 

    1. I have a ScriptManager on the page with EnablePageMethods=true
    2. I add a RadAjax Panel on the page
    3. The RadAjax Panel seems to try to add its own ScriptManager, which thus tries to re-add existing page methods causing the exception.

    Please, a simple fix would be handy.  In the future I will probably be avoiding Telerik controls, as will my office colleagues. This error caused a lot of headache to the integrity of the data that the application handles and we are not pleased.

    I'm on the Q3 release.

  25. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 15 Jun 2009 Link to this post

    Hi Mark,

    I am afraid I could not reproduce the problem you described. You can find attached to this message a simple example which works as expected on my end. Give it a try and let me know what is different in your case or if I am missing something important.

    All the best,
    Pavel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  26. Doug
    Doug avatar
    23 posts
    Member since:
    Feb 2009

    Posted 14 Jul 2009 Link to this post

    I am using the Q1 2009 controls.  I am having a similar issue with "Type Telerik.Web.Orientation has already been registered"  It happens on one machine in my organization and there are tens of people using it (20-30).  The one it is happening on just happens to be my boss.  It only happens during an AJAX update.  If I refresh the page everything is correct up to the first AJAX postback and then it's broken.  I am not using RadScriptManager.  I suppose I can do the opposite of the posts here and replace the ScriptManager with RadScriptManager and see if that changes anything...???!!!

    Please help
  27. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 15 Jul 2009 Link to this post

    Hello Doug,

    Indeed as a first step you can test whether replacing the ScriptManager instance with RadScriptManager makes a difference. Another thing that can help us identify the core of the issue is to specify what RadControls you have on the problematic page and whether removing one or more of them alleviates the abnormality.

    Also verify that you are using the latest release 2009.2.701 of RadControls for ASP.NET AJAX in your project.

    Kind regards,

    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  28. Doug
    Doug avatar
    23 posts
    Member since:
    Feb 2009

    Posted 15 Jul 2009 Link to this post

    The application worked for several months for this user and then suddenly stopped.  The problems persisted multiple reboots.  The user tried to do a windows update (not all steps completed, Don't know which did) and now the problem has gone away again.  I did change to RadScriptManager on my dev environment but the problem went away for both dev and prod for the user.  Guess I can't go on with this unless the problem rears it ugly head again.

    Thanks,
    Doug
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017