1
An item with the same key has already been added
Question asked by Heimir Eidskrem - August 3, 2015 at 12:56 PM
Unanswered
After upgrade to ver 14 we have one domain that gets this error.
See below for error.
 
I checked the accountlist.xml file but nothing duplicated there.
 
The error happens when you try to manage users.
Web mail gives you an error on the users page only.
Cant find anything that looks wrong.
 
Any suggestions?
 
[2015.08.03] System.ArgumentException: An item with the same key has already been added.
[2015.08.03]    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
[2015.08.03]    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
[2015.08.03]    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
[2015.08.03]    at SMWeb.DomainAdmin.frmUsers.PerformSearch(UserData[] original, UserMetaData PageMetaData)
[2015.08.03]    at SMWeb.DomainAdmin.frmUsers.GetGridDataSource(String sessionKey, Int32& virtualCount, Int64& lastUpdate, Int32 low, Int32 high)
[2015.08.03]    at SMWeb.DomainAdmin.frmUsers.GenerateGrid(SuperHyperGrid hyperGrid1, Boolean isCallback, String sessionKey)
[2015.08.03]    at SMWeb.DomainAdmin.frmUsers.GenerateGrid()
[2015.08.03]    at SMWeb.DomainAdmin.frmUsers.Page_Load(Object sender, EventArgs e)
[2015.08.03]    at SMWeb.HelperClasses.CustomPage.OnLoad(EventArgs e)
[2015.08.03]    at System.Web.UI.Control.LoadRecursive()
[2015.08.03]    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[2015.08.03] Application Error

1 Reply

Reply to Thread
0
Rod Lasky Replied
August 4, 2015 at 3:18 PM
Employee Post
Hi Heimir,
When you upgraded to SmarterMail 14, did you uninstall SmarterMail 13 first, or did you install version 14 on top of an existing version?
If you installed on top, then the first thing I would try is a reinstallation following these steps:
 
1. Stop the SmarterMail application pool in IIS.
2. Uninstall SmarterMail from the Control Panel
3. Rename C:\Program Files (x86)\SmarterTools\SmarterMail to SmarterMail_OLD
4. Download and install SmarterMail from here.
5. Stop the SmarterMail service.
6. Transfer the following files from the SmarterMail_OLD folder to the same location in the newly created SmarterMail folder:
    --- All XML files located \SmarterMail_OLD\Service\
7. Start the SmarterMail service.
8. Start the SmarterMail application pool in IIS.
 
If this doesn't work, then I would recommend opening up a support ticket.
Rod Lasky
Technical Support Specialist
SmarterTools Inc.
(877) 357-6278
www.smartertools.com

Reply to Thread