Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eran Meir 401 posts 543 karma points
    May 25, 2011 @ 10:24
    Eran Meir
    0

    Multiple controls with the same ID 'MultiTypeEditor' were found. FindControl requires that controls have unique IDs.

    hey, i've create a few multitypes datatypes with unique names,

    i've added a few data to them, saved it, came back to the edit the data and i get 

    Server Error in '/' Application.
    Multiple controls with the same ID 'MultiTypeEditor' 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 'MultiTypeEditor' 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 'MultiTypeEditor' were found. FindControl requires that controls have unique IDs.]
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +11279940
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +317
       System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +145
       System.Web.UI.WebControls.BaseValidator.CheckControlValidationProperty(String name, String propertyName) +52
       System.Web.UI.WebControls.BaseValidator.ControlPropertiesValid() +130
       System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +146
       System.Web.UI.Control.PreRenderRecursiveInternal() +113
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4185
    
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225 
  • aghy 129 posts 308 karma points
    May 25, 2011 @ 11:56
    aghy
    1

    Hi Eran,

    Very sorry about this. I will have an updated version tonight with a fix. I don't know why I didn't try multiple MultiTypes on a document.

    Thanks
    Ben

  • aghy 129 posts 308 karma points
    May 25, 2011 @ 23:33
    aghy
    1

    Hi Eran,

    The fix was actually more complicated than I thought it would be. You should be able to either install this as a package or download it and take the dll out and drop it in your bin directory.

    Thanks for finding it!

    Ben

  • Eran Meir 401 posts 543 karma points
    May 26, 2011 @ 08:13
    Eran Meir
    0

    i've copied over the old dll but now i get another error when i want to edit a node with multitype datatype in it.

    Server Error in '/' Application.

    The given key was not present in the dictionary.

    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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

    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:

    [KeyNotFoundException: The given key was not present in the dictionary.]
       System.Collections.Generic.Dictionary`2.get_Item(TKey key) +12681055
       _4Ben.DataTypes.MultiType.MultiTypeDataEditorControl.SetMultiType(String multiTypeName) +218
       _4Ben.DataTypes.MultiType.MultiTypeDataEditorControl.OnInit(EventArgs e) +143
       System.Web.UI.Control.InitRecursive(Control namingContainer) +133
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +277
       _4Ben.DataTypes.MultiType.MultiTypeDataEditor.OnInit(EventArgs e) +875
       System.Web.UI.Control.InitRecursive(Control namingContainer) +133
       System.Web.UI.Control.InitRecursive(Control namingContainer) +421
       System.Web.UI.Control.InitRecursive(Control namingContainer) +421
       System.Web.UI.Control.InitRecursive(Control namingContainer) +421
       System.Web.UI.Control.InitRecursive(Control namingContainer) +421
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +277
       umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +3676
       umbraco.controls.ContentControl.CreateChildControls() +834
       System.Web.UI.Control.EnsureChildControls() +182
       umbraco.controls.ContentControl.OnInit(EventArgs e) +123
       System.Web.UI.Control.InitRecursive(Control namingContainer) +133
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +277
       umbraco.cms.presentation.editContent.OnInit(EventArgs e) +1005
       System.Web.UI.Control.InitRecursive(Control namingContainer) +133
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1954
    
  • aghy 129 posts 308 karma points
    May 26, 2011 @ 14:36
    aghy
    0

    : ( I will have another look tonight, sorry again for wasting your time.

    Ben

  • aghy 129 posts 308 karma points
    May 27, 2011 @ 10:48
    aghy
    1

    Eran,

    I've tried to reproduce the error you are getting but I haven't been able to. So I tried looking through my code to see where the problem is and I can't work out why it is happening. It may be because I have used static variables in some places which will obviously get overwritten for each Multitype you use. I will have to rewrite a bit of code to remove all of them and I have also spotted a problem which stops you from putting two of the same MultiType on one document.

    I will have some time this weekend to fix these problems and add some new features.

    Thanks
    Ben

  • Eran Meir 401 posts 543 karma points
    May 27, 2011 @ 13:11
    Eran Meir
    0

    ok, i will delete all the datatypes and the package before installing the new version.

  • aghy 129 posts 308 karma points
    May 29, 2011 @ 04:36
    aghy
    0

    Hi Eran,

    I hope you eventually got it working.

    I have just released v1.1 which has a better fix for the problems you were originally having. It's a better fix because it now allows you to put multiple MultiTypes of the same DataType on a DocumentType ... if that makes sense.

    Any problems please let me know.

    Thanks
    Ben

  • Eran Meir 401 posts 543 karma points
    May 29, 2011 @ 09:46
    Eran Meir
    0

    i updated the dll and put the xslt file and now i don't get the error. Hooray!

Please Sign in or register to post replies

Write your reply to:

Draft