This is a migrated thread and some comments may be shown as answers.

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

28 Answers 1100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
LEVENT CAMLIBEL
Top achievements
Rank 1
LEVENT CAMLIBEL asked on 21 Dec 2007, 08:59 AM
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.

28 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 21 Dec 2007, 09:28 AM
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
0
LEVENT CAMLIBEL
Top achievements
Rank 1
answered on 21 Dec 2007, 09:44 AM
Hello Stephen
I replaced  RadScriptManager with normal ScriptManager and it eliminated the exception.

0
Steve
Telerik team
answered on 21 Dec 2007, 09:51 AM
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
0
LEVENT CAMLIBEL
Top achievements
Rank 1
answered on 21 Dec 2007, 09:56 AM
That's the problem. this is what I am doing.
0
Erjan Gavalji
Telerik team
answered on 21 Dec 2007, 05:05 PM
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
0
Rainz
Top achievements
Rank 1
answered on 24 Dec 2007, 04:02 PM
Wondering if any progress has been made on this issue,

thanks
0
Jeff
Top achievements
Rank 1
answered on 26 Dec 2007, 03:24 PM
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.
0
Erjan Gavalji
Telerik team
answered on 27 Dec 2007, 04:37 PM
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
0
Rainz
Top achievements
Rank 1
answered on 27 Dec 2007, 08:13 PM
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
0
kchoateclc
Top achievements
Rank 1
answered on 27 Dec 2007, 11:33 PM
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.
0
Erjan Gavalji
Telerik team
answered on 28 Dec 2007, 02:00 PM
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
0
Blaize
Top achievements
Rank 1
answered on 28 Dec 2007, 02:05 PM
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
0
Rainz
Top achievements
Rank 1
answered on 28 Dec 2007, 06:27 PM
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
0
MW
Top achievements
Rank 1
answered on 29 Dec 2007, 08:07 AM
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.
0
Rainz
Top achievements
Rank 1
answered on 31 Dec 2007, 02:44 PM
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>

0
Steve Kinyon
Top achievements
Rank 1
answered on 04 Jan 2008, 08:48 PM
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.
0
Blaize
Top achievements
Rank 1
answered on 07 Jan 2008, 12:00 PM
Hi guys, I just found a new build fixing the BoxSide problem here. Check it out.
Cheers,
Blaize
0
The Oracle
Top achievements
Rank 1
answered on 25 Jun 2008, 10:14 PM
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
0
Erjan Gavalji
Telerik team
answered on 30 Jun 2008, 02:27 PM
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
0
Adam L. Ooten
Top achievements
Rank 2
answered on 18 Aug 2008, 05:41 PM
Is this supposed to be fixed in the new Q2 release?  I am still having the problem with this version.
0
Helen
Telerik team
answered on 19 Aug 2008, 09:02 AM
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.
0
Mark
Top achievements
Rank 1
answered on 12 Jun 2009, 07:39 PM
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.

0
Pavel
Telerik team
answered on 15 Jun 2009, 07:50 AM
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.
0
Doug
Top achievements
Rank 1
answered on 14 Jul 2009, 09:23 PM
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
0
Sebastian
Telerik team
answered on 15 Jul 2009, 07:21 AM

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.
0
Doug
Top achievements
Rank 1
answered on 15 Jul 2009, 02:24 PM
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
0
Ildar
Top achievements
Rank 1
answered on 24 Mar 2017, 03:18 PM
I have the same issue with RadScriptManager. 
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."
0
Marin Bratanov
Telerik team
answered on 27 Mar 2017, 11:23 AM

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,


Marin Bratanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
LEVENT CAMLIBEL
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
LEVENT CAMLIBEL
Top achievements
Rank 1
Steve
Telerik team
Erjan Gavalji
Telerik team
Rainz
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
kchoateclc
Top achievements
Rank 1
Blaize
Top achievements
Rank 1
MW
Top achievements
Rank 1
Steve Kinyon
Top achievements
Rank 1
The Oracle
Top achievements
Rank 1
Adam L. Ooten
Top achievements
Rank 2
Helen
Telerik team
Mark
Top achievements
Rank 1
Pavel
Telerik team
Doug
Top achievements
Rank 1
Ildar
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or