这是我拥有的代码。/// Method calls stored procedure and fills DataSet of contacts associated with Lead/// <param name="leadID">The ID associated with a Lead</param>public static DataSet
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
str = "select Vote from vote where party='Green'" con.Open() if dr.HasRows
此问题与相关 public IEnumerable<ApplicationPositionHistory> GetApplicationPositionHistories(代码是这样的: <tr> @Html.DisplayFor(modelItem =td>
@Html.DisplayFor(modelItem => i
但是,当我尝试这样做时:在执行Mapper函数时,我得到了错误消息:There is already an open DataReader associated with this Command which must be closed first。现在我意识到要解决这个问题,我必须在我的连接字符串中设置multipleactiveresultsets=True。我试过了,它确实解决
奇怪的是: 1.本地web服务器/本地db设置工作;2.本地web服务器/ azure db设置工作;3.但是:使用azure db设置的Azure web服务器不工作。这将导致以下臭名昭著的异常:
InvalidOperationException: There is already an open DataReader associated with this Command我使用的连接字符串如下(目前在本地web服务器和Azure web服务器上是相同的