Hello, I've got service/application connected to mssql server, and it sometimes crashes terribly with following stacktrace:
Uncaught exception: ArgumentOutOfRangeException - Specified argument was out of the range of valid values.
Parameter name: capacity, thrown at: mscorlib
Stack Trace:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2..ctor(Int32 capacity, IEqualityComparer`1 comparer)
at System.Data.ProviderBase.DbConnectionFactory.PruneConnectionPoolGroups(Object state)
at System.Threading._TimerCallback.TimerCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._TimerCallback.PerformTimerCallback(Object state)
Well, in fact, i don't use timer, (and i am not sure WHERE exactly the timer is being started), and I cant find the reason for this crash. Do you have any experience/do you have seen why exactly this happens, and how to avoid it (or ignore it?). The service's running time is crucial for me.