Edit member throws error - "an item with the same key has already been added"
On a umb 4.7.2 and Contour 1.1.13
I made a register form - works nicely
Made an edit member form :-(. Throws this at me:
Server Error in '/' Application.
An item with the same key has already been added.
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.ArgumentException: An item with the same key has already been added.
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 have this problem aswell, renaming my custom property from "email" did not work. Also - I tried to create a new member with a completely default member type, but it did not help.
Steps to reproduce (in my case with Forms 4.01): Add a form with one field and defaultvalue {something}. Display the form.
Edit member throws error - "an item with the same key has already been added"
On a umb 4.7.2 and Contour 1.1.13
I made a register form - works nicely
Made an edit member form :-(. Throws this at me:
I followed some threads on here and from the hints I got I deleted all records i the Db, deleted all forms and started over. No luck.
Anyone out there with some knowledge on this issue?
Uhh... Should mention that the edit form works fine when the 'DefaultValue' is left empty OR has a standard text (fx. 'write your name').
The mess begins when I use the brackets to fetch the member like this {member.email} ...that causes the error.
Comment author was deleted
ANd does this happne for a specific member. value or all of them?
Hi Tim,
Just tested it. It happens to all members. And it happens to all values both custom and native.
Comment author was deleted
Ok might have been a bug in that version (since you are using an older one) I would recommend upgrading (both umbraco and contour)
Hi Tim,
I updated umbraco to 4.9 (higher version blew out my teacommerce) and contour to 3.0. The error is the same. I guess theres no real fix for this.
Claus
Comment author was deleted
Hmmm well I can't reproduce the error, mind sending me your install, then I might be able to debug
To tg at umbraco dot com
Thanks,
Tim
Hi Tim,
I have the same issue!
Umbraco 6.1.6
Contour 3.0.17
Best regards
Sören
I have solved it!
I had a custom property with alias eMail. After rename it, it works! There are trouble with the standard alias email.
Thanks Sören..
I have this problem aswell, renaming my custom property from "email" did not work. Also - I tried to create a new member with a completely default member type, but it did not help.
Steps to reproduce (in my case with Forms 4.01): Add a form with one field and defaultvalue {something}. Display the form.
Stack trace:
My workaround is setting the data I need to session and using [%sessionkey]
is working on a reply...