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.
28 Answers, 1 is accepted
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
I replaced RadScriptManager with normal ScriptManager and it eliminated the exception.
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
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
thanks
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
Getting this script error:
Line: 113
Error: 'Telerik' is undefined
So can't even get past this step to reproduce the BoxSide error
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.
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
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
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
<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.
<
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>
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.
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
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
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.
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.
- I have a ScriptManager on the page with EnablePageMethods=true
- I add a RadAjax Panel on the page
- 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.
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.
Please help
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,
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.
Thanks,
Doug
Error: "Error: Sys.InvalidOperationException: Type Telerik.Web.UI.Point 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."
Hi,
I have answered your support ticket with the same question and I am pasting my answer here for anyone else having similar errors:
This error is usually observed when one of our core scripts is loaded twice on the page, so a second call to the Type.RegisterNamespace() method of MS AJAX is executed.
The solution is to remove the second script registration. If you cannot find it, please isolate the issue to the bare bones minimum (it would usually be a couple of controls and a postback) so I can investigate.
This error is often observed with RadXmlHttpPanel and this section explains how to resolve it in such a case: http://docs.telerik.com/devtools/aspnet-ajax/controls/xmlhttppanel/troubleshooting#type-xxxxxxxx-has-already-been-registered.
Regards,
Telerik by Progress