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

Forums / Bugs & Issues / error with generic content multiple controls

error with generic content multiple controls

3 posts, 0 answered
  1. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    02 Sep 2007
    Link to this post
    Hi,

    I have some times the below error. It usally is caused from a link pointing to blank (ex "#") while I choose navigation from pages whice are below a page group and then press that link.

    The strange is that is not caused always but only sometimes. Any idea what causes it? The page that causes the error has only one Generic Content.

    Best regards

    Vagelis


     

    Server Error in '/test' Application.

    ame ID 'GenericContent1' were found. FindControl requires that controls have unique IDs.

    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.Web.HttpException: Multiple controls with the same ID 'GenericContent1' were found. FindControl requires that controls have unique IDs.

    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:

    [HttpException (0x80004005): Multiple controls with the same ID 'GenericContent1' were found. FindControl requires that controls have unique IDs.]
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +220
       System.Web.UI.Control.EnsureNamedControlsTable() +57
       System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +106
       System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +289
       System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +289
       System.Web.UI.Page.FindControl(String id) +40
       System.Web.UI.Page.RegisterRequiresClearChildControlState(Control control) +345
       System.Web.UI.Control.ClearChildControlState() +50
       System.Web.UI.WebControls.SiteMapPath.CreateChildControls() +36
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.WebControls.CompositeControl.get_Controls() +12
       Telerik.Cms.Web.InternalPage.ValidateControls(ControlCollection coll) +173
       Telerik.Cms.Web.InternalPage.ValidateControls(ControlCollection coll) +183
       Telerik.Cms.Web.InternalPage.ValidateControls(ControlCollection coll) +183
       Telerik.Cms.Web.InternalPage.ValidateControls(ControlCollection coll) +183
       Telerik.Cms.Web.InternalPage.OnPreRender(EventArgs e) +29
       System.Web.UI.Control.PreRenderRecursiveInternal() +77
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
    
  2. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    03 Sep 2007
    Link to this post
    Hello Vagelis Kretsimos,

    As you might already know, this error usually appears when there are two or more controls in the page with same ID. In Sitefinity it can be reproduced in multiple ways. For example, if you try to add controls with same ID in the master page and in the Sitefinity page under same container. Or if you add such controls in a template and a page again in same container.

    Unfortunately, we are not able to reproduce your situation. Could you give us steps on how to get the error? You said that it does not show always but it would be very helpful to tell us how we could reproduce it. Thanks in advance.

    Regards,
    Vassil Daskalov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    03 Sep 2007
    Link to this post
    Hi Vassil,

    Actually the error perhaps was caused becuse I had add on a template a generic content control and then on a page I had added another one. The strange was that when I visited this page was displayed well and only if when I was on that page I pressed a link pointing to empty url and returned on this page the error was displayed.

    Anyway after this change I have no errors. Thanks a lot for your help.

    Best regards

    Vagelis
Register for webinar
3 posts, 0 answered