---
title: "maxpool error in the application"  
description: "maxpool error in the application"  
author: "Rajesh Goswami"  
published: 2010-12-15  
updated: 2010-12-15  
canonical: https://www.mindstick.com/forum/126/maxpool-error-in-the-application  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# maxpool error in the application

maxpool [error](https://yourviews.mindstick.com/view/88527/fixing-quickbooks-error-4120-reinstalling-vs-repairing) in the [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) how [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) it?

## Replies

### Reply by Amit Singh

You can clear the pool use the following code. However i suggest you to check the following first\
1. Please call the Dispose() method after you close the connection.

2. Ask the DBA to check for open connections at the very moment you are greeted with the error. You could find the faulty application.

3. Check the web.config for the pool settings. Set pooling to true.

Max Pool Size - Leave it at 100

Min Pool Size - Mark it 0

Pooling - Mark to true

4. Note: Restarting the IIS could fix the issue. Because the AppPools would refresh. If all does not work, then do this.

//To clear the specific connection

SqlConnection.ClearPool(SqlConnection conn)

//To clear all pools

SqlConnection.ClearAllPools()


---

Original Source: https://www.mindstick.com/forum/126/maxpool-error-in-the-application

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
