Click here to Skip to main content
16,012,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have this type of error:

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.

how i find this error.And i already give to the Max pool Size=200 in my web config, But cannot find.
Posted

1 solution

Try by closing DB Connection after its use is completed in each method of Data access class (generally inside finally block).
 
Share this answer
 
v2
Comments
Hadi Basiri 26-Sep-12 9:15am    
When this happen. add a sample code .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900