Just installed the package, clicked the link to run, and get this error:
An entry with the same key already exists.
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 entry with the same key already exists.
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:
[ArgumentException: An entry with the same key already exists.]
System.Collections.Generic.SortedList`2.Add(TKey key, TValue value) +7936403
tswe.log.viewLog.InitControlItems() +2036
tswe.log.manager.OnInit(EventArgs e) +271
System.Web.UI.Control.InitRecursive(Control namingContainer) +133
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1954
I also got this error. It's two users having the same usernames, giving this code a hard time (viewLog.ascx.cs):
// list all users sorted SortedList<string, string> users = new SortedList<string, string>(); foreach (User user in User.getAll()) { users.Add(user.Name, user.Id.ToString()); }
I solved it by looking through my users and renaming duplicate usernames. I found it easiest to have a look for the duplicates in the database table umbracoUser.
Won't run right after installing
Just installed the package, clicked the link to run, and get this error:
When can we expect a fix for this? I have a new site going live this week and really need this.
I also got this error. It's two users having the same usernames, giving this code a hard time (viewLog.ascx.cs):
// list all users sorted
SortedList<string, string> users = new SortedList<string, string>();
foreach (User user in User.getAll())
{
users.Add(user.Name, user.Id.ToString());
}
I solved it by looking through my users and renaming duplicate usernames. I found it easiest to have a look for the duplicates in the database table umbracoUser.
Regards
Jonas
I'm also experiencing this error.
umbraco v 4.0.4.1 (Assembly version: 1.0.3793.17632)
Regards,
Thomas Kahn
...and I also solved it by renaming a disabled user that had the same username as an active user.
/Thomas
Same thing resolved my issue. Not sure why Umbraco allows duplicate userNames if they are going to cause problems.
is working on a reply...