You receive a "Timeout expired" error message when you run a Visual Studio .NET 2003 application (830118)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
SYMPTOMSWhen 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. CAUSEThe SQLClient Pool runs out of
SqlInternalConnection objects.WORKAROUNDTo work around this problem, use one of the following methods: Method 1Change 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 2Change 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.
STATUS This
behavior is by design.REFERENCESFor more information about connection pooling in Microsoft ADO.NET, visit the
following Microsoft Web site: For
more information about pooling in MDAC, visit the following Microsoft Developer
Network (MSDN) Web site:
Modification Type: | Minor | Last Reviewed: | 3/10/2006 |
---|
Keywords: | kbConnPts kbIDEProject kbSqlClient kbprb KB830118 kbAudDeveloper |
---|
|