Introduction:
Here I will explain how to solve the problem “adding the specified count to the semaphore would cause it to exceed its maximum count in c# / Asp.net / sql server .” When running asp.net web application in c#, vb.net with SQL Server database.
Description:
Here I will explain how to solve the problem “adding the specified count to the semaphore would cause it to exceed its maximum count in c# / Asp.net / sql server .” When running asp.net web application in c#, vb.net with SQL Server database.
Description:
In
previous posts I explained many articles relating to solve errors in asp.net, SQL Server, IIS, etc. Now I will
explain how to solve the problem of “adding
the specified count to the semaphore would cause it to exceed its maximum count in sql server”. To solve this
problem we need to add “Pooling=False” in database
connection string to disable connection pool in web.config.
Default
Connection String
<connectionStrings>
<add name="dbconnection" connectionString="Data
Source=SureshDasari; Initial Catalog=TestDatabase; Persist Security
Info=True;User ID=test;Password=test;"
/>
</connectionStrings>
|
After
Adding Pooling in Connection String
<connectionStrings>
<add name="dbconnection" connectionString="Data
Source=SureshDasari; Initial Catalog=TestDatabase; Persist Security
Info=True;User ID=test;Password=test; Pooling=False;" />
</connectionStrings>
|
Once
we add “Pooling=False” condition to
connection string then it will disable connection pool and run application without
any problem.
To know more about connection pooling check this article Connection Pooling
Happy
Coding………
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
8 comments :
good one ....
ok sir,
Hey this is very nice.....................
thnx yar....
thank u..............................
Excellent post. Microsoft need to learn from you for a quick and simple way to solve issues like this.
Chris
Thank you.......
Worthless answer. Connection pooling is there to solve performance issues.
Note: Only a member of this blog may post a comment.