我正在嘗試將EF7 beta 4與Azure Web應用程序結合使用。奇怪的是: 1.本地Web服務器/本地數據庫設置工作; 2.本地網絡服務器/天藍色數據庫設置工作; 3.但:Azure數據庫設置的Azure Web服務器不起作用。這將導致以下臭名昭著的例外: InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.
已經是一個打開的DataReader與這個命令關聯,必須先關閉它?
我使用ConnectionString如下(目前本地Web服務器和Azure的Web服務器上的相同): Server=...database.windows.net,1433;Database=...;User ID=...;Password=...;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;MultipleActiveResultSets=true
我有什麼做的就是它運行?
這聽起來像'MultipleActiveResultSets = TRUE;部分沒有做它的方式到Azure的Web服務器。 – bricelam
嘗試使用beta5並查看問題是否存在。 https://www.nuget.org/packages/EntityFramework.SqlServer/7.0.0-beta5 – natemcmaster