Always "An item with the same key has already been added."

A SQL Server Management Studio add-in to source control your database in Subversion or Team Foundation Server.

Moderators: Chris Auckland, David Atkinson, sherr, PhilScrace

Always "An item with the same key has already been added."

Postby rnpi » Wed Mar 16, 2011 3:34 pm

I don't know what happened, but sometime yesterday my system stopped being able to compare itself to the database. Now when I choose \"Commit Changes\" or \"Get Latest\" there is a short period where the system displays an error dialog which says \"An item with the same key has already been added.\"

This happens when attempting to use \"Get Latest\" or \"Commit Changes\".

-- Get Latest Error Details
Code: Select all
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at #oEc.#VXM.#t.#XXM.#tYM(SourceControlOperation )
   at #oEc.#VXM.#t.#WXM.#qYM(SourceControlOperation )
   at #oEc.#VXM.#t.#XXM.#AYM(ToRetrieveChangeSet& toRetrieveChangeSet)
   at #oEc.#VXM.#mYM[#eTb](Func`2 , ICancellableOperationStatus , IReadOnlySourceControlServerCallBacks )
   at #oEc.#VXM.#kYM(ICancellableOperationStatus , IReadOnlySourceControlServerCallBacks )
   at #oEc.#4Ec.#8Jc(ICancellableOperationStatus , IReadOnlySourceControlServerCallBacks )
   at #oEc.#4Ec.#t.#B3.#qfA(ICancellableOperationStatus )
   at #eEc.#iEc.#t.#D3.#i5f()
   at RedGate.SQLSourceControl.Engine.Cancellables.CancellableOperationBase.InvokeWithTracker(Action action)
   at #eEc.#iEc.Invoke()
   at #eEc.#Qlg.Invoke()
   at #JLc.#PLc.#t.#Jfb.#EJf()
   at RedGate.SQLSourceControl.Engine.SmartAssembly.ExceptionReporting.ErrorReporterBase.Do(Action , Predicate`1 , Boolean )
   at RedGate.SQLSourceControl.Engine.SmartAssembly.ExceptionReporting.ErrorReporterBase.DoWithObviousExceptionsRethrowAll(Action action)
   at RedGate.SQLSourceControl.CommonUI.Forms.ErrorDialog.DoWithObviousExceptionsRethrowAll(Action action)
   at #JLc.#PLc.#CTc(ICancellableOperation`1 , Object )
--
Commit Changes Error Details
--
Code: Select all
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at #oEc.#VXM.#t.#XXM.#tYM(SourceControlOperation )
   at #oEc.#VXM.#t.#WXM.#qYM(SourceControlOperation )
   at #oEc.#VXM.#t.#XXM.#zYM(ToCommitChangeSet& toCommitChangeSet)
   at #oEc.#VXM.#mYM[#eTb](Func`2 , ICancellableOperationStatus , IReadOnlySourceControlServerCallBacks )
   at #oEc.#VXM.#jYM(ICancellableOperationStatus , IReadOnlySourceControlServerCallBacks )
   at #oEc.#4Ec.#7Jc(ICancellableOperationStatus , IReadOnlySourceControlServerCallBacks )
   at #oEc.#4Ec.#t.#u3.#ofA(ICancellableOperationStatus )
   at #eEc.#iEc.#t.#D3.#i5f()
   at RedGate.SQLSourceControl.Engine.Cancellables.CancellableOperationBase.InvokeWithTracker(Action action)
   at #eEc.#iEc.Invoke()
   at #eEc.#Qlg.Invoke()
   at #JLc.#PLc.#t.#Jfb.#EJf()
   at RedGate.SQLSourceControl.Engine.SmartAssembly.ExceptionReporting.ErrorReporterBase.Do(Action , Predicate`1 , Boolean )
   at RedGate.SQLSourceControl.Engine.SmartAssembly.ExceptionReporting.ErrorReporterBase.DoWithObviousExceptionsRethrowAll(Action action)
   at RedGate.SQLSourceControl.CommonUI.Forms.ErrorDialog.DoWithObviousExceptionsRethrowAll(Action action)
   at #JLc.#PLc.#CTc(ICancellableOperation`1 , Object )

--


I've uninstalled the product and reinstalled it. It happens on the original install, as well as the small upgrade version. No one else at my company is having this problem. No anti-virus or other software that I'm aware of is running.

If anyone can help it would be greatly appreciated.

Thanks
rnpi
 
Posts: 2
Joined: Wed Mar 16, 2011 3:21 pm

Postby rnpi » Thu Mar 24, 2011 4:18 pm

Support is on the job. I'll skip all the back and forth but I was told this would be fixed in version 2.1 out in April... probably. If not very soon afterwards.
rnpi
 
Posts: 2
Joined: Wed Mar 16, 2011 3:21 pm


Return to SQL Source Control 2

Who is online

Users browsing this forum: No registered users and 0 guests