System.InvalidOperationException occured in system.dll
Posted on 2006-11-07
My vb.net application requires sql connection to exceute some tasks. I am experiencing the below error message intermittently.. and here is my connection code.
Public Class SqlHelper
Public Function GetConnection() As SqlConnection
Dim cn As New SqlConnection
.ConnectionString = "Data Source = .;Initial Catalog=xxxxxxx;Integrated security=SSPI"
The detailed exception message is
System.InvalidOperationException occured in System.data.dll
Additional Information: Time out 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.
How should i get rid of this situation ????