Server Error in '/StudyHall' Application.
There is already an open DataReader associated with this Command which must be closed first.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.
Source Error:
Line 1187: {
Line 1188: // Attempt to roll back the transaction.
Line 1189: transaction.Rollback();
Line 1190: lblErrorMessage.Text = ex.Message;
Line 1191: // Close Connection
|
Source File: d:\StudyHall\tutorapplicationform.aspx.cs Line: 1189
Stack Trace:
[InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.]
System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command) +6255441
System.Data.SqlClient.SqlInternalTransaction.Rollback() +102
System.Data.SqlClient.SqlTransaction.Rollback() +292
TutorApplicationForm.AdminEmail() in d:\StudyHall\tutorapplicationform.aspx.cs:1189
TutorApplicationForm.btnTutorSubmit_Click(Object sender, EventArgs e) in d:\StudyHall\tutorapplicationform.aspx.cs:1039
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
|