Tuesday, March 8, 2011

How to solve "There is already an open DataReader associated with this Command which must be closed first"

Add following section into database connection string in config file

MultipleActiveResultSets=True;

2 comments:

  1. But I using Postgresql. How add MultipleActiveResultSets=True; in coonnection string.

    When I add MultipleActiveResultSets=True; I received Message
    "key=value argument incorrect in ConnectionString
    Parameter name: multipleactiveresultsets "

    How?

    ReplyDelete