System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. at System.Data.Common.ADP.ExceptionWithStackTrace(Exception e) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NServiceBus.Transport.SQLServer.SqlConnectionFactory.<>c__DisplayClass2_0.<<Default>b__0>d.MoveNext() in C:\Build\src\NServiceBus.SqlServer\Configuration\SqlConnectionFactory.cs:line 31 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NServiceBus.Transport.SQLServer.ReceiveWithNativeTransaction.<ReceiveMessage>d__1.MoveNext() in C:\Build\src\NServiceBus.SqlServer\Receiving\ReceiveWithNativeTransaction.cs:line 56 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NServiceBus.Transport.SQLServer.MessagePump.<InnerReceive>d__6.MoveNext() in C:\Build\src\NServiceBus.SqlServer\Receiving\MessagePump.cs:line 153 ``` Windows event log: ``` Application: NServiceBus.Host.exe Framework Version: v4.0.30319 Description: The application requested process termination through System.Environment.FailFast(string message). Message: The following critical error was encountered by NServiceBus:NServiceBus is shutting down. Stack:

GitHub | janpieterz | 4 months ago
  1. 0

    GitHub comment 286#241332099

    GitHub | 4 months ago | janpieterz
    System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. at System.Data.Common.ADP.ExceptionWithStackTrace(Exception e) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NServiceBus.Transport.SQLServer.SqlConnectionFactory.<>c__DisplayClass2_0.<<Default>b__0>d.MoveNext() in C:\Build\src\NServiceBus.SqlServer\Configuration\SqlConnectionFactory.cs:line 31 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NServiceBus.Transport.SQLServer.ReceiveWithNativeTransaction.<ReceiveMessage>d__1.MoveNext() in C:\Build\src\NServiceBus.SqlServer\Receiving\ReceiveWithNativeTransaction.cs:line 56 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NServiceBus.Transport.SQLServer.MessagePump.<InnerReceive>d__6.MoveNext() in C:\Build\src\NServiceBus.SqlServer\Receiving\MessagePump.cs:line 153 ``` Windows event log: ``` Application: NServiceBus.Host.exe Framework Version: v4.0.30319 Description: The application requested process termination through System.Environment.FailFast(string message). Message: The following critical error was encountered by NServiceBus:NServiceBus is shutting down. Stack:
  2. 0

    Local functions: Ctrl + . on a delegate invocation crashes VS (via Extract Method)

    GitHub | 10 months ago | balajikris
    System.InvalidOperationException: Shouldn't reach here at Roslyn.Utilities.Contract.FailWithReturn[T](String message) at Microsoft.CodeAnalysis.ExtractMethod.MethodExtractor.Analyzer.GetSymbolType(SemanticModel model, ISymbol symbol) at Microsoft.CodeAnalysis.ExtractMethod.MethodExtractor.Analyzer.GenerateVariableInfoMap(SemanticModel model, DataFlowAnalysis dataFlowAnalysisData, Dictionary`2 symbolMap) at Microsoft.CodeAnalysis.ExtractMethod.MethodExtractor.Analyzer.<AnalyzeAsync>d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Microsoft.CodeAnalysis.ExtractMethod.MethodExtractor.<ExtractMethodAsync>d__13.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Microsoft.CodeAnalysis.ExtractMethod.AbstractExtractMethodService`3.<ExtractMethodAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Microsoft.CodeAnalysis.CodeRefactorings.ExtractMethod.AbstractExtractMethodCodeRefactoringProvider.<GetCodeActionAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Microsoft.CodeAnalysis.CodeRefactorings.ExtractMethod.AbstractExtractMethodCodeRefactoringProvider.<ComputeRefactoringsAsync>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult() at Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.<GetRefactoringFromProviderAsync>d__8.MoveNext() Stack: at System.Environment.FailFast(System.String, System.Exception)
  3. 0

    Cannot call Invoke or InvokeAsync on a control until the window handle has been created.

    YouTrack | 1 decade ago
    System.InvalidOperationException: Cannot call Invoke or InvokeAsync on a control until the window handle has been created. at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args) at JetBrains.ReSharper.Shell.Progress.TaskHelper.BeginInvoke() in c:\Agent\work\ReSharper2.0\src\Shell\src\Progress\UITaskExecutor.cs:line 252 at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.ExecuteTask(TaskHelper taskHelper, String taskName, Boolean cancelable, Boolean& canceled) in c:\Agent\work\ReSharper2.0\src\Shell\src\Progress\UITaskExecutor.cs:line 144 at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.ExecuteTask(TaskWithProgress task, String taskName, Boolean& canceled) in c:\Agent\work\ReSharper2.0\src\Shell\src\Progress\UITaskExecutor.cs:line 170 at JetBrains.dotTrace.SnapshotManagement.Helper.OpenSnapShotAndCreateRootTabPage() in C:\Agent\work\dotTrace-2.0\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 88 at JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.OpenTemporal(String filename, ITaskExecutor executor) in C:\Agent\work\dotTrace-2.0\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 190 at JetBrains.dotTrace.Handlers.SnapShotUpdater.LoadSnapShot(String filename) in C:\Agent\work\dotTrace-2.0\src\dotTrace2\src\Handlers\SnapShotUpdater.cs:line 59 --- End of inner exception stack trace --- at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\ReSharper2.0\src\Util\src\Logger.cs:line 327 column 9 at JetBrains.ReSharper.Util.Logger.LogException(Exception) in c:\Agent\work\ReSharper2.0\src\Util\src\Logger.cs:line 339 column 5 at JetBrains.ReSharper.Shell.ShellBase.OnUnhandledException(Exception) in c:\Agent\work\ReSharper2.0\src\Shell\src\ShellBase.cs:line 132 column 5 at JetBrains.ReSharper.Shell.UIApplicationShell.Application_ThreadException(Object, ThreadExceptionEventArgs) in c:\Agent\work\ReSharper2.0\src\Shell\src\UIApplicationShell.cs:line 783 column 5
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

    YouTrack | 10 years ago
    System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created. at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args) at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.TaskHelper.BeginInvoke() in c:\Agent\work\ReSharper2.0\src\Shell\src\Progress\UITaskExecutor.cs:line 252 at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.ExecuteTask(TaskHelper taskHelper, String taskName, Boolean cancelable, Boolean& canceled) in c:\Agent\work\ReSharper2.0\src\Shell\src\Progress\UITaskExecutor.cs:line 144 at JetBrains.ReSharper.Shell.Progress.UITaskExecutor.ExecuteTask(TaskWithProgress task, String taskName, Boolean& canceled) in c:\Agent\work\ReSharper2.0\src\Shell\src\Progress\UITaskExecutor.cs:line 170 at JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.Helper.OpenSnapShotAndCreateRootTabPage() in C:\Agent\work\dotTrace-2.0\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 88 at JetBrains.dotTrace.SnapshotManagement.OpenSnapShotFileAction.OpenTemporal(String filename, ITaskExecutor executor) in C:\Agent\work\dotTrace-2.0\src\dotTrace2\src\Actions\SnapShot\OpenSnapShotFileAction.cs:line 190 at JetBrains.dotTrace.Handlers.SnapShotUpdater.LoadSnapShot(String filename) in C:\Agent\work\dotTrace-2.0\src\dotTrace2\src\Handlers\SnapShotUpdater.cs:line 59 --- End of inner exception stack trace --- at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\ReSharper2.0\src\Util\src\Logger.cs:line 331 column 9 at JetBrains.ReSharper.Util.Logger.LogException(Exception) in c:\Agent\work\ReSharper2.0\src\Util\src\Logger.cs:line 343 column 5 at JetBrains.ReSharper.Shell.ShellBase.OnUnhandledException(Exception) in c:\Agent\work\ReSharper2.0\src\Shell\src\ShellBase.cs:line 132 column 5 at JetBrains.ReSharper.Shell.UIApplicationShell.Application_ThreadException(Object, ThreadExceptionEventArgs) in c:\Agent\work\ReSharper2.0\src\Shell\src\UIApplicationShell.cs:line 783 column 5
  6. 0

    Collection was modified; enumeration operation may not execute.

    YouTrack | 10 years ago
    System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.List`1.Enumerator.MoveNext() at JetBrains.ReSharper.ProjectModel.RecursiveProjectVisitor.VisitProjectItem(IProjectItem projectItem) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\ProjectVisitor.cs:line 76 at JetBrains.ReSharper.ProjectModel.ProjectVisitor.VisitProjectFolder(IProjectFolder projectFolder) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\ProjectVisitor.cs:line 26 at JetBrains.ReSharper.ProjectModel.Impl.ProjectFolderImpl.Accept(ProjectVisitor projectVisitor) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\impl\ProjectFolderImpl.cs:line 337 at JetBrains.ReSharper.ProjectModel.RecursiveProjectVisitor.VisitProjectItem(IProjectItem projectItem) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\ProjectVisitor.cs:line 77 at JetBrains.ReSharper.ProjectModel.ProjectVisitor.VisitProjectFolder(IProjectFolder projectFolder) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\ProjectVisitor.cs:line 26 at JetBrains.ReSharper.ProjectModel.Impl.ProjectFolderImpl.Accept(ProjectVisitor projectVisitor) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\impl\ProjectFolderImpl.cs:line 337 at JetBrains.ReSharper.ProjectModel.RecursiveProjectVisitor.VisitProjectItem(IProjectItem projectItem) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\ProjectVisitor.cs:line 77 at JetBrains.ReSharper.ProjectModel.RecursiveProjectVisitor.VisitProject(IProject project) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\ProjectVisitor.cs:line 82 at JetBrains.ReSharper.ProjectModel.Impl.ProjectImpl.Accept(ProjectVisitor projectVisitor) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\impl\ProjectImpl.cs:line 169 at JetBrains.ReSharper.ProjectModel.RecursiveProjectVisitor.VisitSolution(ISolution solution) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\ProjectVisitor.cs:line 71 at JetBrains.ReSharper.ProjectModel.Impl.SolutionBase.Accept(ProjectVisitor visitor) in c:\BuildAgent\work\Server\ReSharper-Main\src\ProjectModel\src\impl\SolutionBase.cs:line 133 at JetBrains.ReSharper.Psi.Impl.Caches2.CacheManagerImpl.LoadCacheJob.EnqueueProjectItems() in c:\BuildAgent\work\Server\ReSharper-Main\src\Psi\src\impl\caches2\CacheManagerImpl.cs:line 237 at JetBrains.ReSharper.Psi.Impl.Caches2.CacheManagerImpl.LoadCacheJob.Do() in c:\BuildAgent\work\Server\ReSharper-Main\src\Psi\src\impl\caches2\CacheManagerImpl.cs:line 231 at JetBrains.ReSharper.Psi.Impl.Caches2.CacheUpdateThread.Run() in c:\BuildAgent\work\Server\ReSharper-Main\src\Psi\src\impl\caches2\CacheUpdateThread.cs:line 91 --- End of inner exception stack trace --- at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\BuildAgent\work\Server\ReSharper-Main\src\Util\src\Logger.cs:line 350 column 9 at JetBrains.ReSharper.Util.Logger.LogException(Exception) in c:\BuildAgent\work\Server\ReSharper-Main\src\Util\src\Logger.cs:line 362 column 5 at JetBrains.ReSharper.Psi.Impl.Caches2.CacheUpdateThread.Run() in c:\BuildAgent\work\Server\ReSharper-Main\src\Psi\src\impl\caches2\CacheUpdateThread.cs:line 95 column 11

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. System.InvalidOperationException

      Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. at System.Data.Common.ADP.ExceptionWithStackTrace(Exception e) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NServiceBus.Transport.SQLServer.SqlConnectionFactory.<>c__DisplayClass2_0.<<Default>b__0>d.MoveNext() in C:\Build\src\NServiceBus.SqlServer\Configuration\SqlConnectionFactory.cs:line 31 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NServiceBus.Transport.SQLServer.ReceiveWithNativeTransaction.<ReceiveMessage>d__1.MoveNext() in C:\Build\src\NServiceBus.SqlServer\Receiving\ReceiveWithNativeTransaction.cs:line 56 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NServiceBus.Transport.SQLServer.MessagePump.<InnerReceive>d__6.MoveNext() in C:\Build\src\NServiceBus.SqlServer\Receiving\MessagePump.cs:line 153 ``` Windows event log: ``` Application: NServiceBus.Host.exe Framework Version: v4.0.30319 Description: The application requested process termination through System.Environment.FailFast(string message). Message: The following critical error was encountered by NServiceBus:NServiceBus is shutting down. Stack:

      at System.Environment.FailFast()
    2. System
      Environment.FailFast
      1. System.Environment.FailFast(System.String)
      1 frame