Server Error in '/' Application.

Invalid operation. The connection is closed.

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: Invalid operation. The connection is closed.

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: Invalid operation. The connection is closed.]
   System.Data.ProviderBase.DbConnectionClosed.CreateReferenceCollection() +91
   System.Data.ProviderBase.DbConnectionInternal.AddWeakReference(Object value, Int32 tag) +36
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +520
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +138
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +201
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +453
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +141
   dal_DataAccess.ExecuteDataTable(String StoredProcedureName) +119
   bll_Category.GetByTypeID(Int32 TypeID) +126
   bll_Category.GetByTypeID(Int32 TypeID) +194
   bll_Category.GetPathUrlName(String ItemType, Object oCatID) +21
   Gallery.Page_Load(Object sender, EventArgs e) +7219
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0