Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Sep 29, 2010 @ 20:07
    Connie DeCinko
    0

    Won't run right after installing

    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
    
  • Connie DeCinko 931 posts 1160 karma points
    Oct 04, 2010 @ 18:08
    Connie DeCinko
    0

    When can we expect a fix for this?  I have a new site going live this week and really need this.

     

  • Jonas Eriksson 930 posts 1825 karma points
    Oct 07, 2010 @ 08:38
    Jonas Eriksson
    2

    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

  • Thomas Kahn 602 posts 506 karma points
    Nov 01, 2010 @ 08:56
    Thomas Kahn
    0

    I'm also experiencing this error.

    umbraco v 4.0.4.1 (Assembly version: 1.0.3793.17632)

    Regards,
    Thomas Kahn

     

  • Thomas Kahn 602 posts 506 karma points
    Nov 01, 2010 @ 08:58
    Thomas Kahn
    0

    ...and I also solved it by renaming a disabled user that had the same username as an active user.

    /Thomas

  • Connie DeCinko 931 posts 1160 karma points
    Nov 29, 2010 @ 19:43
    Connie DeCinko
    0

    Same thing resolved my issue.  Not sure why Umbraco allows duplicate userNames if they are going to cause problems.

     

Please Sign in or register to post replies

Write your reply to:

Draft