次のエラー メッセージが表示され、petaPOCO を使用しています。このエラー メッセージが表示される理由と、このメッセージが表示される原因は次のとおりです。
{"There is already an open DataReader associated with this Command which must be closed first."}
This is what I have been able to copy for the exception message.
System.InvalidOperationException がキャッチされました。メッセージ = このコマンドに関連付けられた開いている DataReader が既に存在します。これを最初に閉じる必要があります。ソース = System.Data StackTrace: System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute (SqlCommand コマンド) で System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute (String メソッド、SqlCommand コマンド) で System.Data.SqlClient.SqlCommand.ValidateCommand (String) System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) で System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream 、文字列メソッド) System.Data で。