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.ExecuteScalar() +140
   dal_DataAccess.ExecuteScalar(String StoredProcedureName) +53
   bll_Pattern.GetHtmlByID(Int32 ID) +114
   icl_Template.GetListHtml(Int32 TypeID, Int32 PatternID, DataRow Dr, NameValueCollection nv_Prop, Int32 Index, Int32 Count, DataTable dt_Field, dal_DataAccess dal) +88
   Gallery.Page_Load(Object sender, EventArgs e) +8275
   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