?
Solved

UMBRACO Log Manager

Posted on 2013-01-16
1
Medium Priority
?
572 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 1000 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

770 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