Gear Selection

by mechgt

Downloads: 3,377 (5) • Reviews: 3

Version:

1.0.4

Updated:

Jan 31, 2012

[FIXED] An entry with the same key already exists

[FIXED] An entry with the same key already exists

Postby GregTR » Mon Jan 31, 2011 9:10 pm

I'm trying to add some manual exercises to keep track of my swimming. On a given day as soon as I add one I get the error mentioned above when I select it from the list. The error detail is the following:

************** Exception Text **************
System.ArgumentException: An entry with the same key already exists.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
at GearChart.Controls.DetailPaneChart.FillSingleDataSerie(LineChartTypes chartType, ChartDataSeries dataSerie)
at GearChart.Controls.DetailPaneChart.SetupSecondaryDataSeries()
at GearChart.Controls.DetailPaneChart.SetActivity(IActivity activity)
at GearChart.UI.DetailPage.GearChartDetail.set_Activity(IActivity value)
at GearChart.UI.DetailPage.GearChartPage.SelectionProvider_SelectedItemsChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at ZoneFiveSoftware.SportTracks.UI.SelectionProviderProxy.OnProviderSelectionItemsChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at ZoneFiveSoftware.SportTracks.Plugin.Activities.Views.DailyActivityView.MainWindow.OnActivitiesListSelectedItemsChanged(Object sender, EventArgs e)
at ZoneFiveSoftware.Common.Visuals.TreeList.FireSelectedChanged()
at ZoneFiveSoftware.Common.Visuals.TreeList.set_Selected(IList value)
at ZoneFiveSoftware.Common.Visuals.TreeList.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
SportTracks
Assembly Version: 3.0.3924.17243
Win32 Version: 3.0.3924.17243
CodeBase: file:///C:/Program%20Files%20(x86)/Zone%20Five%20Software/SportTracks%203/SportTracks.exe
----------------------------------------
Common.Visuals
Assembly Version: 3.0.3924.17113
Win32 Version: 3.0.3924.17113
CodeBase: file:///C:/Program%20Files%20(x86)/Zone%20Five%20Software/SportTracks%203/Common.Visuals.DLL
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Common.Data
Assembly Version: 3.0.3924.17107
Win32 Version: 3.0.3924.17107
CodeBase: file:///C:/Program%20Files%20(x86)/Zone%20Five%20Software/SportTracks%203/Common.Data.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
GearChart
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/GearChart.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/ca/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/cs/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/da/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/de/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/en/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/es/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/fi/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/fr/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/he/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/it/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/ja/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/nl/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/no/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/pl/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/pt/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/ru/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/sk/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/sv/GearChart.resources.dll
----------------------------------------
GearChart.resources
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/095e9958-b07b-404e-a562-0735e8cd2cc4/zh-CN/GearChart.resources.dll
----------------------------------------
HDPlugin3
Assembly Version: 3.0.26.0
Win32 Version: 3.0.26
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/0a57600c-d77c-4026-9a51-f0f9c8be19b3/HDPlugin3/HDPlugin3.dll
----------------------------------------
PerformancePredictorPlugin
Assembly Version: 1.9.115.36658
Win32 Version: 1.9
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/0aa49fdf-ada0-4522-9488-a698a7e197aa/PerformancePredictorPlugin.dll
----------------------------------------
PerformancePredictorPlugin.resources
Assembly Version: 1.9.115.36658
Win32 Version: 1.9
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/0aa49fdf-ada0-4522-9488-a698a7e197aa/da/PerformancePredictorPlugin.resources.dll
----------------------------------------
PerformancePredictorPlugin.resources
Assembly Version: 1.9.115.36658
Win32 Version: 1.9
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/0aa49fdf-ada0-4522-9488-a698a7e197aa/de/PerformancePredictorPlugin.resources.dll
----------------------------------------
PerformancePredictorPlugin.resources
Assembly Version: 1.9.115.36658
Win32 Version: 1.9
CodeBase: file:///C:/ProgramData/ZoneFiveSoftware/SportTracks/3/Plugins/Installed/0aa49fdf-ada0-4522-9488-a698a7e197aa/es/PerformancePredictorPlugin.resources.dll
----------------------------------------
PerformancePredictorPlugin.resources
Assembly Version: 1.9.115.36658
Win32 Version: 1.9
GregTR
 
Posts: 40
Joined: Fri Jan 15, 2010 12:26 am

Re: An entry with the same key already exists

Postby GregTR » Mon Jan 31, 2011 9:11 pm

If I select the Activity Reports view I get a nasty error on top saying "Error Loading View"

And the following text follows:
An entry with the same key already exists.

at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
at GearChart.Controls.DetailPaneChart.FillSingleDataSerie(LineChartTypes chartType, ChartDataSeries dataSerie)
at GearChart.Controls.DetailPaneChart.SetupSecondaryDataSeries()
at GearChart.Controls.DetailPaneChart.SetActivity(IActivity activity)
at GearChart.UI.DetailPage.GearChartDetail.set_Activity(IActivity value)
at GearChart.UI.DetailPage.GearChartPage.SelectionProvider_SelectedItemsChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at ZoneFiveSoftware.SportTracks.Plugin.Activities.Views.ReportsView.MainWindow.OnActivitiesListSelectedItemsChanged(Object sender, EventArgs e)
at ZoneFiveSoftware.Common.Visuals.TreeList.FireSelectedChanged()
at ZoneFiveSoftware.Common.Visuals.TreeList.set_Selected(IList value)
at ZoneFiveSoftware.Common.Visuals.TreeList.set_SelectedItems(IList value)
at ZoneFiveSoftware.SportTracks.Plugin.Activities.Controls.ActivityList.SelectRow(DateTime selectedDate)
at ZoneFiveSoftware.SportTracks.Plugin.Activities.Controls.ActivityList.DoRefreshRowData()
at ZoneFiveSoftware.SportTracks.Plugin.Activities.Views.ReportsView.ReportsActivityList.SetActivities(IList`1 activities)
at ZoneFiveSoftware.SportTracks.Plugin.Activities.Views.ReportsView.MainWindow.SetActivities(IList`1 activities)
at ZoneFiveSoftware.SportTracks.Plugin.Activities.Views.ReportsView.MainView.SetActiveReport(ActivityReportPreferences report)
at ZoneFiveSoftware.SportTracks.Plugin.Activities.Views.ReportsView.MainView.CreatePageControl()
at ZoneFiveSoftware.SportTracks.UI.ViewNavigationManager.ShowCurrentView()
GregTR
 
Posts: 40
Joined: Fri Jan 15, 2010 12:26 am

Re: An entry with the same key already exists

Postby Burnt Toast » Tue Feb 01, 2011 3:22 pm

What does this have to do with a plugin that tells you what gear you are in during your bike workout?

I'm confused.
Burnt Toast
Donated!
Donated!
 
Posts: 666
Joined: Thu Apr 29, 2010 9:21 am
Location: Minnesota, USA

Re: An entry with the same key already exists

Postby PissedOffCil » Tue Feb 01, 2011 3:34 pm

The error shows the plugin is at fault.
Developer of the Garmin Fitness, Filtered Statistics and Distribution plugins
PissedOffCil
Donated!
Donated!
 
Posts: 1589
Joined: Sat Jul 05, 2008 9:18 pm
Location: Chicoutimi, Qc, Canada

Re: An entry with the same key already exists

Postby mechgt » Tue Feb 01, 2011 5:11 pm

Thanks for the report. I'll take a look at it.
Enhance SportTracks with Training Load, Fit Plan and more plugins at mechgt.com. Garmin FR310XT & iBike iPro
mechgt
Donated!
Donated!
 
Posts: 1188
Joined: Wed Sep 26, 2007 2:13 pm
Location: Atlanta, GA, USA

Re: An entry with the same key already exists

Postby mechgt » Fri Feb 04, 2011 9:19 am

Version 1.0.1 posted with which fixes problem listed above.
Enhance SportTracks with Training Load, Fit Plan and more plugins at mechgt.com. Garmin FR310XT & iBike iPro
mechgt
Donated!
Donated!
 
Posts: 1188
Joined: Wed Sep 26, 2007 2:13 pm
Location: Atlanta, GA, USA

Re: An entry with the same key already exists

Postby GregTR » Fri Feb 04, 2011 9:43 am

Thanks for the quick fix!
GregTR
 
Posts: 40
Joined: Fri Jan 15, 2010 12:26 am

Re: An entry with the same key already exists

Postby texmurphy » Fri Feb 04, 2011 5:25 pm

mechgt wrote:Version 1.0.1 posted with which fixes problem listed above.

Except I get this error from Activity Documentation after v1.0.1 install:
Image
texmurphy
Donated!
Donated!
 
Posts: 2076
Joined: Wed Jul 05, 2006 7:38 pm
Location: Maryland, USA

Re: An entry with the same key already exists

Postby mechgt » Fri Feb 04, 2011 9:48 pm

This only appeared once during activation if you had Activity Documentation installed. Found, fixed in v1.0.2.
Enhance SportTracks with Training Load, Fit Plan and more plugins at mechgt.com. Garmin FR310XT & iBike iPro
mechgt
Donated!
Donated!
 
Posts: 1188
Joined: Wed Sep 26, 2007 2:13 pm
Location: Atlanta, GA, USA

Re: An entry with the same key already exists

Postby old_man_biking » Sat Feb 05, 2011 2:56 am

mechgt wrote:This only appeared once during activation if you had Activity Documentation installed. Found, fixed in v1.0.2.


Eddy, you shouldn't register the documentation component in the IPlugin implementation constructor or Application setter, because ST calls these twice when installing/updating a plugin.
But you might have noticed this yourself :)

Cheers,
OMB
old_man_biking
Donated!
Donated!
 
Posts: 6505
Joined: Mon May 28, 2007 8:07 am
Location: Munich, Germany


Return to Gear Selection

Who is online

Users browsing this forum: No registered users and 1 guest