When you enable the SQL Server
debugging feature in Microsoft Visual Studio .NET 2003, and then you run an application, you receive the following
error message:
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.
To work around this problem, use one of the following methods:
Method 1
Change your project configuration to Release mode. To
do this, follow these steps:
In Visual Studio .NET, click Configuration Manager on the Build menu, and then click Release
in the Active Solution Configuration list.
On the Debug menu, click
Start to run your application. Notice that you do not receive
the error message that is mentioned in the "Symptoms" section.
Method 2
Change the Debug mode configuration properties of your project. To do this, follow these steps:
In Visual Studio .NET, right-click your application in Solution Explorer, and then click Properties.
In a Microsoft Visual Basic .NET project, click Debug under Configuration Properties, and then clear SQL Server debugging under
Enable Debuggers.
In a Microsoft Visual C# .NET project, click
Debugging under Configuration Properties, and then set the value of Enable SQL
Debugging under
Debuggers to False.