Reputation: 4259
i am getting connection pooling error for my asp.net (3.5) application when deployed to the clients server. using a query (from googling) i found out one of my pages alone pumping around 56 connections to the server when it is opened, the page contains a nested gridview and it is having quite a large number of data around 2600 main grid data and n number of data in the child grid, the database in the client is sql server 2000 , what will be max connection pool setting in the web config , is there a way to overcome this problem.
Upvotes: 0
Views: 660
Reputation: 49165
As @Mitch correcting pointed out, the better solution is not to adjust connection pooling setting up rather re-design your code so that it can work with single connection.
Current obvious issue is that every connection that you open should be closed immediately after your use them. But more than that you should consider below re-factoring:
Upvotes: 1