OOPS!!!
Crash!!!
I was giving the ASP.NET test and application crashed:
Well I scored 18 out of 25 by the time
Following is the URL:
http://www.quiznetonline.com/PracticeTest.aspx?Group=aspnet
and Following is the error description:
Server Error in '/' 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 66: {
Line 67: Topic topic = new Topic();
Line 68: List<Topic> topics =
topic.LoadTopics(Request.QueryString["Group"].ToString(),true);
Line 69: topic = topics[0];
Line 70:
Source File: d:\hosting\markcrosbie\PracticeTest.aspx.cs Line: 68
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) +730343
System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String
method, SqlCommand command) +21
System.Data.SqlClient.SqlCommand.ValidateCommand(String method,
Boolean async) +56
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
method, DbAsyncResult result) +73
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
behavior, String method) +122
System.Data.SqlClient.SqlCommand.ExecuteReader() +84
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection
connection, SqlTransaction transaction, CommandType commandType,
String commandText, SqlParameter[] commandParameters,
SqlConnectionOwnership connectionOwnership) in SQLHelper.cs:830
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection
connection, CommandType commandType, String commandText,
SqlParameter[] commandParameters) in SQLHelper.cs:955
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection
connection, String spName, Object[] parameterValues) in SQLHelper.cs:
985
QuizNetOnlineLogic.Topic.LoadTopics(String TopicCode, Boolean
IncludeMovie) in QuizNetOnlineComponents.cs:394
Exam.GetTopicDetails() in d:\hosting\markcrosbie
\PracticeTest.aspx.cs:68
Exam.Page_Load(Object sender, EventArgs e) in d:\hosting\markcrosbie
\PracticeTest.aspx.cs:28
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1061
Well the test is having good questions
Best Regards,
Anup Daware