On Member.Save - An item with the same key has already been added.
I am coding up a password reset user control (see code below) but when the code hits cMember.Save I get an error (shown below). This also happens in the back office when I try to save a user, can anyone help please?
Member cMember = Member.GetMemberFromEmail(tbEmail.Text);
// Found the user var password = Membership.GeneratePassword(10, 1); password = Regex.Replace(password, @"[^a-zA-Z0-9]", m => "9");
// Change the password cMember.ChangePassword(password);
(sorry about the duplicate post the forum is playign up)
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.
On Member.Save - An item with the same key has already been added.
I am coding up a password reset user control (see code below) but when the code hits cMember.Save I get an error (shown below). This also happens in the back office when I try to save a user, can anyone help please?
Member cMember = Member.GetMemberFromEmail(tbEmail.Text);
// Found the user
var password = Membership.GeneratePassword(10, 1);
password = Regex.Replace(password, @"[^a-zA-Z0-9]", m => "9");
// Change the password
cMember.ChangePassword(password);
// Save the password
cMember.Save();
Stack trace
(sorry about the duplicate post the forum is playign up)
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.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
From stack trace looks like it's falling over trying to reindex.
Have you tried deleting your Lucene indexes?
ie delete this folder: \App_Data\TEMP\ExamineIndexes
They'll get regenerated on build/save.
is working on a reply...