Server Error in '/' Application.

ExecuteReader requires an open and available Connection. The connection's current state is connecting.

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: ExecuteReader requires an open and available Connection. The connection's current state is connecting.

Source Error:


Line 96:         try
Line 97:         {
Line 98:         using (reader = cmd.ExecuteReader(CommandBehavior.CloseConnection))
Line 99:         {
Line 100:            dt.Load(reader);

Source File: d:\Program Files\woot\ninnkitokei\App_Code\mdb.cs    Line: 98

Stack Trace:


[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is connecting.]
   System.Data.OleDb.OleDbConnection.CheckStateOpen(String method) +1070163
   System.Data.OleDb.OleDbCommand.ValidateConnection(String method) +25
   System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String method) +18
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +56
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +116
   mdb.ExecuteReader(String cmdText, CommandType ct) in d:\Program Files\woot\ninnkitokei\App_Code\mdb.cs:98
   shownews.Page_Load(Object sender, EventArgs e) in d:\Program Files\woot\ninnkitokei\shownews.aspx.cs:16
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1031