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 | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 286#241332099

    GitHub | 7 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:

    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