I have a application web and when execute this for a long
time generated this error:
Server Error in '/RAIMServer' Application.
-----------------------------------------------------------
---------------------
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.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.
Exception Details: 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.
Source Error:
An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.
Stack Trace:
[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.]
RAIMDBLayer.DBPacs..ctor(Database pDataBase, String
pUser, String pPassword, String pIPDB, KindBBDD pKindBBDD,
String pLogFolder, Int32 pLogLevel) +1072
RAIMDBLayer.DBLayerBuilder.ConnectDBPacs(Database
pDataBase, String pLogFolder, Int32 pLogLevel, KindBBDD
pKindBBDD, String pUser, String pPassword, String pIPDB)
+186
RAIMASP.RAIMASP.ChangePathWeb(String LocalPath)
RAIMASP.RAIMASP.FormatRetrieveASP2(XmlDocument pXml,
String pstrNavigator)
Web.Query.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
I have in the code sqlconnection closed, datareader closed
and dispose and continue generate this error.
What's the solution??
Thanks