Invalid attempt to call FieldCount when reader is closed

后端 未结 5 650
长发绾君心
长发绾君心 2020-12-20 03:45

The error above occurs when I try to do a dataReader.Read on the data recieved from the database. I know there are two rows in there so it isnt because no data actually exis

5条回答
  •  不知归路
    2020-12-20 04:18

    I got this exception while using the VS.NET debugger and trying to examine some IQueryable results. Bad decision because the IQueryable resulted in a large table scan. Stopping and restarting the debugger and NOT trying to preview this particular IQueryable was the workaround.

提交回复
热议问题