+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Both DataSource and DataSourceID are defined on 'RadMenu1'. Remove one definition.

Both DataSource and DataSourceID are defined on 'RadMenu1'. Remove one definition.

2 posts, 0 answered
  1. Fabian Raul Jofre
    Fabian Raul  Jofre avatar
    1 posts
    Registered:
    09 Dec 2008
    16 Jun 2010
    Link to this post

    I have this error, in my web application.
    Is not common that´s happend, in occasional times Happend.
    I send you the issue.
    I use only de DataSource. I never set de DataSourceID.
    Thank´s.


    Both DataSource and DataSourceID are defined on 'RadMenu1'.  Remove one definition.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.InvalidOperationException: Both DataSource and DataSourceID are defined on 'RadMenu1'.  Remove one definition.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

     

    [InvalidOperationException: Both DataSource and DataSourceID are defined on 'RadMenu1'.  Remove one definition.]

       System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +10834996

       System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +28

       System.Web.UI.Control.LoadRecursive() +66

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Control.LoadRecursive() +191

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

     


  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Jun 2010
    Link to this post
    Hi Fabian Raul Jofre,

    Could you please show us the markup and code files of your user control?

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered