JsErrror:Sys.InvalidOperationException

14 posts, 0 answers
  1. Hrushikesh Mokashi
    Hrushikesh Mokashi avatar
    172 posts
    Member since:
    Dec 2007

    Posted 02 Aug 2008 Link to this post

    Hi All,

    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.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Aug 2008 Link to this post

    Hi  Hrushikesh,

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hrushikesh Mokashi
    Hrushikesh Mokashi avatar
    172 posts
    Member since:
    Dec 2007

    Posted 06 Aug 2008 Link to this post



    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.







  5. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 06 Aug 2008 Link to this post

    Hello 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.
  6. Hrushikesh Mokashi
    Hrushikesh Mokashi avatar
    172 posts
    Member since:
    Dec 2007

    Posted 07 Aug 2008 Link to this post

    Hi Daniel,

    Thanx for the reply.
    But I am still facing this issue. What could be missing?



    Best Regards,
    Hrushikesh.


  7. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 11 Aug 2008 Link to this post

    Hello 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.
  8. rtk
    rtk avatar
    46 posts
    Member since:
    Aug 2006

    Posted 18 Sep 2008 Link to this post

    Hey

    I have the same problem. Did you find any solutions to the problem?
  9. Daniel
    Admin
    Daniel avatar
    4946 posts

    Posted 18 Sep 2008 Link to this post

    Hello John,

    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.
  10. Harsh Verma
    Harsh Verma avatar
    8 posts
    Member since:
    Jul 2009

    Posted 03 Jul 2009 Link to this post

    Background:  
    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.InvalidOperationException: Type Telerik.Web.UI.Orientation has already been registered.

    2.Sys.InvalidOperationException: Type Telerik.Web.UI.RadComboBoxEventArgs has already been registered.

    3.Sys.InvalidOperationException: Type Telerik.Web.UI.AttributeCollection has already been registered.

    4.(missing : after property id)  Sys.Application.add_init(function() {
        $create(Telerik.Web.UI.RadCalendar, {"_DayRenderChangedDays":{},"_FormatInfoArray":[["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["January","February","March","April","May","June","July","August","September","October","November","December",],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",],"dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","MMMM dd","ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","M/d/yyyy","h:mm tt","yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","MMMM, yyyy","AM","PM","/",":",0],"_ViewRepeatableDays":{},"_ViewsHash":{ctl00_MainCntrl_RadDock23512acf-a922-4af4-b1d3-871a17563fb3_C_widget_gridCalenderEventOrder_ctl00_ctl06_RadDatetxtFirstTextBox_calendar_Top : [[2009,7,1], 1]},"_calendarWeekRule":0,"_culture":"en-US","_enableViewSelector":false,"_firstDayOfWeek":7,"_postBackCall":"__doPostBack(\u0027ctl00$MainCntrl$RadDock23512acf-a922-4af4-b1d3-871a17563fb3$C$widget$gridCalenderEventOrder$ctl00$ctl06$RadDatetxtFirstTextBox$calendar\u0027,\u0027@@\u0027)","clientStateFieldID":"ctl00_MainCntrl_RadDock23512acf-a922-4af4-b1d3-871a17563fb3_C_widget_gridCalenderEventOrder_ctl00_ctl06_RadDatetxtFirstTextBox_calendar_ClientState","enabled":true,"monthYearNavigationSettings":["Today","OK","Cancel","Date is out of range.","False"],"skin":"Office2007","specialDaysArray":[],"stylesHash":{DayStyle: ["", ""],CalendarTableStyle: ["", "rcMainTable"],OtherMonthDayStyle: ["", "rcOtherMonth"],TitleStyle: ["", ""],SelectedDayStyle: ["", "rcSelected"],SelectorStyle: ["", ""],DisabledDayStyle: ["", "rcDisabled"],OutOfRangeDayStyle: ["", "rcOutOfRange"],WeekendDayStyle: ["", "rcWeekend"],DayOverStyle: ["", "rcHover"],FastNavigationStyle: ["", "RadCalendarMonthView RadCalendarMonthView_Office2007"],ViewSelectorStyle: ["", "rcViewSel"]},"useColumnHeadersAsSelectors":false,"useRowHeadersAsSelectors":false}, null, null, $get("ctl00_MainCntrl_RadDock23512acf-a922-4af4-b1d3-871a17563fb3_C_widget_gridCalenderEventOrder_ctl00_ctl06_RadDatetxtFirstTextBox_calendar"));
    });

    There is the code I am using to add the control in the RadDock

     Control widget = (Control)LoadControl(TagArr1[1]); //TagArr1[1] Control Url
     WidgetsControl_CalenderComponent widgetControl = (WidgetsControl_CalenderComponent)widget;

     dock.ContentContainer.Controls.Add(widget);
     widgetControl.IsSchoolHomePage = SessionInfo.IsSchoolHome;

    Please let me know, how I can I avoid these errors?

    Thank in advance
    Harsh Verma
  11. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 10 Jul 2009 Link to this post

    Hi Harsh,

    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":
    dock.ID = Guid.NewGuid().ToString().Replace('-', '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. 


    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.
  12. Eduardo Dulanto
    Eduardo Dulanto avatar
    8 posts
    Member since:
    May 2010

    Posted 19 Apr 2011 Link to this post

    Dear Sir.  I am having the same problem.  Can you please help?  This error occurrs intermitently:


    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

     

  13. Rory
    Rory avatar
    159 posts
    Member since:
    Jul 2007

    Posted 27 Oct 2011 Link to this post

    We are getting the error intermittently too with clients that are using Windows 7 IE8 over a slow vpn connection. We have 1,000s of other clients with the same setup but a faster connection that don't get the error. It seems to happen on any page that is using a  RadAjaxManager, ajaxified divs and a LoadingPanel. Is it possible that there is some sort of racing condition / bug in the Telerik suite that happens because of the slow connection?

    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."
  14. Jawahar
    Jawahar avatar
    1 posts
    Member since:
    Jan 2014

    Posted 07 Oct 2014 Link to this post

    Hi 
    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 ?
  15. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 10 Oct 2014 Link to this post

    Hi,

    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.

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