Sys.InvalidOperationException

11 posts, 0 answers
  1. willie
    willie avatar
    8 posts
    Member since:
    Apr 2007

    Posted 07 Aug 2007 Link to this post

    Gentlemen,

    I have a serious issue here that is going to impact business.

    ISSUE:
    Error: Sys.InvalidOperationException: Object Telerik already exists and is not a namespace.
    Code: 0

    SCENARIO:
    I have a Master Page with a Rad Tab Strip, Rad AJAX Manager, RAD Panel Bar. Everything works well till this point.

    Now, I have a content page named 'default.aspx' which has a Content Place Holder and within it as ASP.NET Panel. I programatically add a user control (control code pasted below) to this panel using Item Click of the Panel Bar on the Master Page. The user control in turn has a Rad Multi-Page. Within this is a PageView control. On the PageView, we have a Prometheus Rad Layout with a Rad zone that hosts a Rad dock.

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="TabPages.ascx.cs" Inherits="UserControls_TabPages" EnableViewState="false" %>
    <%
    @ Register Assembly="RadDock.Net2" Namespace="Telerik.WebControls" TagPrefix="cc1" %>
    <%
    @ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="radTS" %>
    <%
    @ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <
    radTS:RadMultiPage ID="tabMultiPage" runat="server" Height="100%" Width="100%">
       
    <radTS:PageView ID="pgView" runat="server">
           
    <telerik:RadDockLayout ID="dcl_Main" runat="server">
               
    <telerik:RadDockZone ID="dcz_Main" runat="server" Height="300px" Width="300px">
                   
    <telerik:RadDock ID="dck_Main" runat="server" Width="300px">
                   
    </telerik:RadDock>
               
    </telerik:RadDockZone>
            
    </telerik:RadDockLayout>
       
    </radTS:PageView>
    </
    radTS:RadMultiPage>

    On the Master page, I get the Java Script error as above and the control of course does not render.
    There is no custom code within the Code-Behind of the user control.

    Please help!!

    Thanks and Regards,
    William



  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 07 Aug 2007 Link to this post

    Hello William,

    Your scenario seems a bit complicated and I am afraid that we will not be able to reproduce it successfully here. Please open a formal support ticket and send us a simple project with the master page, the content page, and the user control. Also please tell us which versions of the controls you are using.

    Greetings,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. willie
    willie avatar
    8 posts
    Member since:
    Apr 2007

    Posted 07 Aug 2007 Link to this post

    Hello Lini,

    Thank you for a prompt reply. This is what is best about Telerik. I would try and get a small application that would expose what I am trying to do.

    In the meantime, may I request you to send me a sample project that could have something as below:

    Master Page with a TabStrip
    Content Page with a User Control having Multipage --> PageView --> RadDock.

    For a minimum, can you at least give me direction as to why am I getting the error message I specified in the post.

    Thanks !!
    William


    Thanks and Regards,
    William
     
  4. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 07 Aug 2007 Link to this post

    Hi William,

    Here is the example, which we used to try and reproduce your problem. Unfortunately, we get no error with this code. I am also sending the web.config file. Please compare it with yours and make sure that you have included all required sections for the ASP.NET Ajax extensions -

    the <add tagPrefix="asp"... line
    the <add assembly="System.Web.Extensions, ... line
    all the lines from the <httpHandlers> and <httpModules> sections.

    Kind regards,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. willie
    willie avatar
    8 posts
    Member since:
    Apr 2007

    Posted 07 Aug 2007 Link to this post

    Hi Lini,

    Thank you for the assistance and I bet you guys are too good with support. My web.config is absolutely OK.

    One thing that I have realized is that when I disable AJAX everything works fine with a postback. As soon as I add a Rad AJAX Manager Setting for the tab page, the error comes up.

    Any clues??

    Regards,
    William
  6. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 07 Aug 2007 Link to this post

    Hello William,

    As I said earlier, it will be very hard to help you, since we cannot recreate the same scenario here. That is why it would be much easier to figure things out once you send us a sample of your code.

    Regards,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. willie
    willie avatar
    8 posts
    Member since:
    Apr 2007

    Posted 07 Aug 2007 Link to this post

    Lini,

    I have raised a support ticket but, I am not sure what the file size upload limit is.

    Regards,
    William
  8. Jim
    Jim avatar
    8 posts
    Member since:
    Aug 2006

    Posted 29 Nov 2007 Link to this post

    Has there been any update to this problem, or were you able to reproduce the problem?  I am getting the same error in a slightly different situation now and was hoping you might have some updated information regarding the source of the problem.
  9. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 30 Nov 2007 Link to this post

    Hello ,

    The original problem was that William used the RadAjax from the ASP.NET controls suite with the RadDock control from the "Prometheus" suite. We advised him to start using the RadAjax control from the "Prometheus" suite because it is more compatible with ASP.NET Ajax controls (like the RadDock "Prometheus").

    Sincerely yours,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  10. Tulika
    Tulika avatar
    15 posts
    Member since:
    Aug 2007

    Posted 16 Dec 2008 Link to this post

    Hi,

    I'm using 'RadControls for ASPNET AJAX Q3 2008' for Asp.Net 2003. I'm also facing the same problem. Web config is matched with your provided one. I'm not understand the solution you provide. Kindly help me.

    Regards,
    Tulika
  11. Nikolay Raykov
    Admin
    Nikolay Raykov avatar
    102 posts

    Posted 18 Dec 2008 Link to this post

    Hi Tulika,

    I have attached an example of how to use RadDock inside an user control in a master page scenario. Please review it and if it does not cover your specific scenario I suggest you to open a support ticket and send us a sample working project.

    Sincerely yours,
    Nikolay Raykov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top