I used RadAjaxManager,RadAjaxLoadingPanel,RadTabstrip,RadGrid..scriptmanager
In pageveiw contain grid ,dropdown and button.
When i click on one control before it's processing done i click on another control it gives me the error as
Microsoft JScript runtime error: Sys.InvalidOperationException: A control is already associated with the element.
13 Answers, 1 is accepted
I have found the following forum link which discuss a similar error. Go through the following forum discussion and see whether it helps.
Sys.InvalidOperationException: Two components...
Thanks
Shinu.
Hi Shinu,
Thank you for the reply. I have removed my ASp.NET AJAX script manager and placed RadScriptManager.
Now this is giving me javascript popup error message as:
Microsoft JScript runtime error: Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation 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.
If I click on 'Continue' then it gives me next error as:
Microsoft JScript runtime error: Sys.ScriptLoadFailedException: The script '/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager2_HiddenField&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2008.1.619.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a4364035f-7a19-4477-bb96-de2f05499ebe%3a393f5085%3a9703c1f0%3aa3f85c94%3af2a57eb7%3aa9723048%3a39249aa4%3a34f9d57d%3ac6335cbd%3a526d426%3a80c4ad6d%3a527acb41%3a577694e5' failed to load. Check for:
Inaccessible path.
Let me explain you what actually I am doing.
I have a RadGrid inside a RadTabstrip.
I have .net Dropdown and .net Imagebutton (Refresh) controls as well on the page.
On change of dropdown or on click of 'Refresh' button grid is getting filled.
On click of 'Refresh' button I am showing a Loading Panel on the Radgrid (On change of dropdown no LoadingPanel I am showing).
I have added 'Refresh' button in RadAjaxManager
<telerik:RadAjaxManager ID="rdAjaxManagerHistoryGrid" runat="server" EnableAJAX="true"
DefaultLoadingPanelID="LoadingPnlCustom" >
<ajaxsettings>
<telerik:AjaxSetting AjaxControlID="btnRefresh">
<updatedcontrols>
<telerik:AjaxUpdatedControl ControlID="rGridAccounts"
LoadingPanelID="LoadingPnlCustom" /></updatedcontrols></telerik:AjaxSetting>
</ajaxsettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="LoadingPnlCustom" runat="server"
BackColor="control" Transparency="15">
<asp:Image ID="imgCustom1" runat="server"
ImageUrl="~/images/loadingFinal.gif" />
</telerik:RadAjaxLoadingPanel>
Now problem comes when I change option in Dropdown and immediatly (almost at the same time) on Refresh button. The same error I am facing on other tabs also ( If I am clicking two controls almost at the same time) for the similar scnerio.
Can you please help me out?
Best Regards,
Hrushikesh.
Could you please try the following:
- go to your web.config and delete the whole <httpHandlers> section
- click on the smart tag on your RadScriptManager and then select Register Telerik.Web.UI.WebResource.axd.
Let us know whether this helps.
Best regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thanx for the reply.
But I am still facing this issue. What could be missing?
Best Regards,
Hrushikesh.
Please send us a simplified working version of your project illustrating this issue via regular support ticket. We need to examine and debug your code locally in order to give you straight-to-the-point answer.
Kind regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I have the same problem. Did you find any solutions to the problem?
Please provide more details on your scenario - we need to know which controls are involved, which version and so on. Also it may be helpful if you attach an example project (via support ticket) as I suggested before.
Regarding your question: Actually Hrushikesh never sent an project to us and thus we don't know what exactly caused his issues.
Regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I am trying to create a RadDock dynamically on an .aspx Page and further adding a Control(.acsx) in RadDock. The .acsx Control has a dynamicly RadDatePicker and RadComboBox in it.
Issue:
In that Page, I need to repopulate the RadDock with Control when the RadDock moves from a RadDockZone to other RadDockZone .
I am try create this page with help of example that is published on the telerik site(Dynamically add Raddock)
I am getting some errors when I am trying to do so:
1.Sys.
2.Sys.
3.Sys.
4.(missing : after property id) Sys.Application.add_init(
$create(Telerik.Web.UI.
});
There is the code I am using to add the control in the RadDock
Control widget = (Control)LoadControl(TagArr1[
WidgetsControl_
dock.ContentContainer.
widgetControl.
Please let me know, how I can I avoid these errors?
Thank in advance
Harsh Verma
I believe you have reported such a problem before in another forum thread. The issue seems to be caused by the following code line:
dock.ID = Guid.NewGuid().ToString(); |
The ID returned contains "-" which cannot be used in an ID for ASP.NET control. We should therefore replace the "-" character with a "legal" one. The following code line replaces it with an "a":
I assume that one of our RadDock examples have led you to the problem. We apologize for the inconvenience, and we will fix it as soon as we can.
dock.ID = Guid.NewGuid().ToString().Replace('-', 'a') ;
Best wishes,
Pero
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.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8)
Timestamp: Tue, 19 Apr 2011 15:00:50 UTC
Message: Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation 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.
Line: 2315
Char: 38
Code: 0
URI: http://ufs.msa-test.com/SDX.Web.UI.UFS.Revenues.Billing/ScriptResource.axd?d=qUH_ZIbFhNjJPttCAlAbycN9lw4CiwqcXzSRwyb-S_fXI-oAwI8rBTAE8EzzFnLg8m-g_zjbxxJpljAKfd17w5w3mq_Xx1a-m_0TyvAYqcxccJgK3h5FDSXMoyJJEIA6ZFiOeOKZQTaskgEbydxMbXUfuTFZG2P1cUv3lw-YTlUQ2naY0&t=423c2118
Message: Sys.ScriptLoadFailedException: The script '/SDX.Web.UI.UFS.Revenues.Billing/ScriptResource.axd?d=Aeaa85Q47-wuAdce6iMdA_ELChY3AhaX51-DU-Ty6vVJPsdbGQgSGObgmISPHXZGFzWbS8HRFcPWxZIlYi3xzrfR-pOpm4awJH9iPyUd_pX-OfCPXWGiiFsJIvsbkAmWHd5Rog2&t=49ac879' failed to load. Check for:
Inaccessible path.
Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings.
Missing call to Sys.Application.notifyScriptLoaded().
Line: 1266
Char: 13
Code: 0
URI: http://ufs.msa-test.com/SDX.Web.UI.UFS.Revenues.Billing/ScriptResource.axd?d=CsddWOoJf3S9Iz56e7jRg2IMTJvJX7EDVp39aziD7liou2jDcm69p_MWCWEdTltY3BwE86vuuiPAWMfR3w_pTDGfj6ja17_0GftT3Z48rReFH94de96ms4ILUAU3CYBaJ4znfoACmNZ3dadwyMrEWXnzV5XrsxMBwXrjglU0EcQ2g0vg0&t=423c2118
This person said they used an alternative of disabling cache but that doesn't fix the issue for us. Any help please?
http://www.telerik.com/community/forums/aspnet-ajax/ajax/sys-invalidoperationexception-type-telerik-web-ui-orientation-has-already-been-registered.aspx
The inconsistent errors:
"Message: Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation has already been registered."
"Message: Sys.InvalidOperationException: Type Telerik.Web.UI.AttributeCollection has already been registered."
"Message: Sys.InvalidOperationException: Type Telerik.Web.UI.RadComboBoxEventArgs has already been registered."
"Message: Sys.InvalidOperationException: Type Telerik.Web.UI.RadAjaxControl has already been registered."
Good Morning
Im facing the same issue as mentioned by the other user. We are getting this error only for few users. What could be the reason and how to resolve it ?
You can find a list of possible reasons for such errors in the following forum thread: http://www.telerik.com/forums/telerik-web-ui-orientation-has-already-been-registered-with-raddock-as-a-popup#M3QrOSTkhECEy2-XV9iQKg
If you are still having difficulties after checking the linked post, please try isolating the problematic scenario in a fully runnable sample and send it via a support ticket so that I can inspect it on my end.
Regards,
Slav
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.