Database timeout expired

While connecting your ASP.NET application to the MSSQL database if you face the below error message.

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.

Which means the database connection has been deleted from the connection pool.

You can try below mentioned solution in order to fix this issue:

Please double check with your application that the database connections are shut down when it is not essential, ASP.NET equipped with garbage collector which can recover the unutilized assets.

Another way is to increase the connection pool size to the connection string, for instance you can set Max Pool Size to 100 in your connection string.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SQL server- network related or instance-specific error happened while connection establishing

  Instance-specific or network related error happening while connecting to SQL server   Please...

OleDB connection string examples

OleDB connection string examples MS Access (Jet) "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA...

Do you allow custom COM components?

Do you allow custom COM components? We are not offering to install the custom COM components...

Error when accessing a WCF services

Error when accessing a WCF services Error when accessing a WCF service: "IIS specified...

How to cache static contents to client with UseMaxAge?

You can consider to caches static contents to the client with UseMaxAge if your website has too...

Powered by WHMCompleteSolution