Server Error in '/' Application.

There is already an open DataReader associated with this Command which must be closed first.

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: There is already an open DataReader associated with this Command which must be closed first.

Source Error:


Line 28: </div> Line 29: <div class="col-12 col-md-4"> Line 30: <% foreach (var items in Pack___Company___CMS.Content.GetContents.GetArticleDetail(_article_id,_user_id)) Line 31: { %> Line 32: <div class="print-info">

Source File: c:\inetpub\vhosts\siroozonline.ir\httpdocs\print.aspx    Line: 30

Stack Trace:


[InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.] System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command) +2598109 System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +310 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) +155 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +83 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +198 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) +500 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) +187 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +410 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +39 Pack___Company___CMS.Content.GetContents.GetArticleDetail(Int64 ArticleID, Int32 userID) in G:\W+CMS\44 - SiroozOnline.ir ---- new template\siroozonline.ir\Pack - Company + CMS & Website - Responsive\Pack - Company + CMS\Content\GetContents.cs:200 ASP.print_aspx.__Renderprintform(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\vhosts\siroozonline.ir\httpdocs\print.aspx:30 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11835345 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +50 ASP.print_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\vhosts\siroozonline.ir\httpdocs\print.aspx:20 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117 System.Web.UI.Page.Render(HtmlTextWriter writer) +39 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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