-1

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.

whenever i load my project on explorer sometime i meet with an error. can any1 help me to solve this time out error

John Saunders
  • 160,644
  • 26
  • 247
  • 397

2 Answers2

2

This usually happens when connections are not closed after they are used. Are you using a DataReader? If so make sure it is closed.

LOZ
  • 1,169
  • 2
  • 16
  • 43
1

This exception can also arise when same SQL query string is run over and over again several times e.g. inside a loop.

For a work-around try modifying connection string that is used in web service with the attributes like Connect Timeout , Max Pool Size.

"Integrated Security=True;Server=ServerName;Initial Catalog=DatabaseName;Connect Timeout=20000; pooling='true'; Max Pool Size=20000"

Khushi4.net
  • 329
  • 1
  • 15