Server Error in '/' Application.

The connection was not closed. The connection's current state is connecting.

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: The connection was not closed. The connection's current state is connecting.

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: The connection was not closed. The connection's current state is connecting.]
   System.Data.ProviderBase.DbConnectionClosedConnecting.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +1047415
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +92
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +219
   System.Data.SqlClient.SqlConnection.Open() +101
   AGN.Database.Sql2005.OpenConnection() in D:\VSTS\AGN Platform\Classlibraries\AGN MF\Library\Database\MsSQL\MsSql_Helper.cs:22
   AGN.Database.Sql2005.SelectDataTable(StoredProcedure spStoredProcedure, Int32 iCurrentTry) in D:\VSTS\AGN Platform\Classlibraries\AGN MF\Library\Database\MsSQL\MsSql_SP.cs:49

[Exception: FOUT: SP: Select datatable[Iso:ReadUncommitted, Retry: 1/1], query: sp_SalesArticle, melding: The connection was not closed. The connection's current state is connecting. --- ]
   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