open 未关闭
Posted deepalley
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了open 未关闭相关的知识,希望对你有一定的参考价值。
{System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.
at System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command)
at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command)
at System.Data.SqlClient.SqlCommand.ValidateCommand(Boolean async, String method)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at Tkx.DbBase.SqlDbHelper.ExecuteReader(String sql, CommandType commandType,
以上是关于open 未关闭的主要内容,如果未能解决你的问题,请参考以下文章
数据源连接池未关闭的问题 Could not open JDBC Connection for transaction