SQL Azure + Getting an error 'There is already an open DataReader associated with this Command..', even after setting ‘MultipleActiveResultSets=True’

前端 未结 6 946
南旧
南旧 2021-02-05 03:57

We are facing some issues with the deployed version of our application on cloud.

Our application is an ASP.NET MVC 3 project with ADO .NET Entity Framework.

Acco

6条回答
  •  不思量自难忘°
    2021-02-05 04:11

    You do have to set multipleresultsets=true in connectionsstring and restart.

    Removed answer

    Edit: This is debated! Check comment beneath... I havent had time to investigate...

    I think it is already turned on.

    I couldn't find a spot-on source but Faisal Mohamood(Program Manager, Entity Framework) states the following back in 2010: "Needless to say, we will make sure that MARS is automatically turned ON for SQL Azure based apps when we get around to releasing the next update to the product." Found it here: http://blogs.msdn.com/b/adonet/archive/2010/06/09/remember-to-re-enable-mars-in-your-sql-azure-based-ef-apps.aspx

提交回复
热议问题