Server Error in '/' Application.

ExecuteReader requires an open and available Connection. The connection's current state is open.

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: ExecuteReader requires an open and available Connection. The connection's current state is open.

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: ExecuteReader requires an open and available Connection. The connection's current state is open.]
   System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +2585837
   System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +78
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +274
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +119
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +65
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +170
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +43
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +12
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +140
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +111
   AGN.Database.Sql2005.SelectDataTable(StoredProcedure spStoredProcedure, Int32 iCurrentTry) in D:\VSTS\AGN Platform\Classlibraries\AGN MF\Library\Database\MsSQL\MsSql_SP.cs:62

[Exception: FOUT: SP: Select datatable[Iso:ReadUncommitted, Retry: 1/1], query: sp_SalesArticle, melding: ExecuteReader requires an open and available Connection. The connection's current state is open. --- ]
   AGN.Database.Sql2005.ThrowException(String sType, String sQuery, Exception ex) in D:\VSTS\AGN Platform\Classlibraries\AGN MF\Library\Database\MsSQL\MsSql_Helper.cs:174
   AGN.Database.Sql2005.SelectDataTable(StoredProcedure spStoredProcedure, Int32 iCurrentTry) in D:\VSTS\AGN Platform\Classlibraries\AGN MF\Library\Database\MsSQL\MsSql_SP.cs:105
   AGN.Database.Sql2005.AGN.Database.IDatabase.SelectDataTable(StoredProcedure spStoredProcedure) in D:\VSTS\AGN Platform\Classlibraries\AGN MF\Library\Database\MsSQL\MsSql_SP.cs:14
   AGN.Database.DatabaseConnector.SelectDataTable(StoredProcedure spStoredProcedure, MemoryCacheEntryOptions cache) in D:\VSTS\AGN Platform\Classlibraries\AGN MF\Library\Database\DatabaseConnector.cs:190
   AGN.MIS.SalesArticle.LoadSalesArticle(Boolean forceLoad) in D:\VSTS\AGN Platform\Classlibraries\AGN MF\Library\MIS\Objects\SalesArticle.cs:483
   AGN.UI.custcontrols.ProductControls.AanbiedingUitgelichtControl.Initialize(ProductClassification classification) in D:\VSTS\dewilde\Websites\dewilde_nl\custcontrols\ProductControls\AanbiedingUitgelichtControl.ascx.cs:30
   AGN.UI.custcontrols.ProductControls.ModelListViewControl.Initialize(List`1 modelList, Boolean updatePager) in D:\VSTS\dewilde\Websites\dewilde_nl\custcontrols\ProductControls\ModelListViewControl.ascx.cs:76
   AGN.UI.custcontrols.ProductControls.ModelListControl.InitializeView(FilterEventArgs e, Boolean updatePager) in D:\VSTS\dewilde\Websites\dewilde_nl\custcontrols\ProductControls\ModelListControl.ascx.cs:131
   AGN.UI.custcontrols.ProductControls.ModelListControl.InitControl(String[] saArguments) in D:\VSTS\dewilde\Websites\dewilde_nl\custcontrols\ProductControls\ModelListControl.ascx.cs:80
   AGN.UI.custcontrols.ProductControls.ModelListRundownInitializer.InitControl(String[] saArguments) in D:\VSTS\dewilde\Websites\dewilde_nl\custcontrols\ProductControls\ModelListRundownInitializer.ascx.cs:15
   AGN.UserControls.Paragraph_Module.InitParagraph(ParagraphTemplate pict) in D:\VSTS\AGN Platform\Classlibraries\AGN.UserControlLibrary MF\Library\Content\Paragraph_Module.ascx.cs:75
   AGN.UserControls.Paragraphs.paragraph_DataBinding(Object sender, EventArgs e) in D:\VSTS\AGN Platform\Classlibraries\AGN.UserControlLibrary MF\Library\Content\Paragraphs.ascx.cs:443
   System.Web.UI.Control.OnDataBinding(EventArgs e) +86
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +154
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +187
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +164
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +187
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +164
   AGN.UserControls.Paragraphs.DataBind() in D:\VSTS\AGN Platform\Classlibraries\AGN.UserControlLibrary MF\Library\Content\Paragraphs.ascx.cs:385
   AGN.UserControls.Paragraphs.InitPageContent(PageItems pageItems) in D:\VSTS\AGN Platform\Classlibraries\AGN.UserControlLibrary MF\Library\Content\Paragraphs.ascx.cs:238
   AGN.UserControls.Paragraphs.Page_Load(Object sender, EventArgs e) in D:\VSTS\AGN Platform\Classlibraries\AGN.UserControlLibrary MF\Library\Content\Paragraphs.ascx.cs:209
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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