Solved

UMBRACO Log Manager

Posted on 2013-01-16
1
561 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VS 2017 18 43
transition to visual .net from vb6 5 38
Why "Mobile First"? 5 19
I need help changing the default value for an @HTML.LabelFor control 4 20
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

861 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