Solved

UMBRACO Log Manager

Posted on 2013-01-16
1
557 Views
Last Modified: 2013-01-23
Im trying to install the Log Manager package (http://our.umbraco.org/projects/developer-tools/log-manager) onto UMBRACO v4.7.0 and when I try to run it I receive the following error:   If anyone has any suggestions as to how I might fix it I would be very grateful.  Thanks


[ArgumentException: An entry with the same key already exists.]
   System.Collections.Generic.SortedList`2.Add(TKey key, TValue value) +8032807
   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) +1970
0
Comment
Question by:citymarketing
1 Comment
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 500 total points
ID: 38783210
I don't know if there is any way those of us who don't use UMBRACO or have this Log Manager installed can help. I'll do what I can.

First off, the problem appears to be the fact that you're adding an entry into a SortedList for a Key Value that already exists. So, you have something like:

SortedList<int, string> myList = new SortedList<int, string>();

then:

myList.Add( 1, "one" );
myList.Add( 1, "One" ); <== error -- entry with same key already exists.

So, there is some condition that is causing this to occur. If you do not have control over what is being placed into this list, what *do* you have control over? I wonder then, if you have some sort of old log or something that already exists and the application is attempting to fill in new information on top of old information and burping as a result?

Make sure you clean up any old files, etc. Maybe it's a configuration file that you've had that tells about reading in a log or something that should be deleted but isn't?

Hope this info is helpful.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question