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

前端 未结 6 969
南旧
南旧 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:31

    We're on the new Azure portal and had this problem as well. MARS worked on all local dev environments, but threw the same nasty exception on Azure. We verified that the connection string in the physical web.config file deployed to Azure contained MultipleActiveResultSets=true; but it didn't seem to be honored by the application. Ultimately what worked was going to the app service instance > settings > data connections, and deleting the data connection of the same name as the one in question in the web.config. My guess is that the one that Azure stores trumps the one in the deployed web.config.

提交回复
热议问题