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
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.
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.
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.
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.
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
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
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
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.
: ( I will have another look tonight, sorry again for wasting your time.
Ben
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
ok, i will delete all the datatypes and the package before installing the new version.
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
i updated the dll and put the xslt file and now i don't get the error. Hooray!
is working on a reply...