I randomly get this exception, which terminates my application as it is from ThreadPool / TimerQueue.
Is there a workaround I can use to stop this from happening?
Application: #####
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
at System.ThrowHelper.ThrowArgumentException(System.ExceptionResource)
at System.Collections.Generic.Dictionary2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Insert(System.__Canon, System.__Canon, Boolean) at Couchbase.Core.Diagnostics.Metrics.LoggingMeterReport.Generate(System.Collections.ObjectModel.ReadOnlyDictionary
2<System.String,App.Metrics.IMetricsRoot>, UInt32)
at Couchbase.Core.Diagnostics.Metrics.LoggingMeter.GenerateReport(System.Object)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireQueuedTimerCompletion(System.Object)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()