简体   繁体   中英

Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool.

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

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

This exception can also arise when same SQL query string is run over and over again several times eg 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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM