[Mono-list] mdb problem on Linux
Cory Nelson
Cory Nelson <phrosty@gmail.com>
Wed, 17 Nov 2004 01:26:41 -0800
InvalidOperationException: State != Open
On Wed, 17 Nov 2004 09:31:43 +0100 (CET), mdb teszt <mdb@freemail.hu> wrote:
> Hi,
>
> I'm trying to get an OleDbConnection to my mdb database file.
> I get an error message when I try use DataReader:
>
> Stack Trace: System.InvalidOperationException: State != Open
> in <0x0008f> System.Data.OleDb.OleDbCommand:ExecuteReader
> (System.Data.CommandBehavior)
> in <0x00054> (wrapper remoting-invoke-with-check)
> System.Data.OleDb.OleDbCommand:ExecuteReader
> (System.Data.CommandBehavior)
> in <0x00016> System.Data.OleDb.OleDbCommand:ExecuteReader ()
> in <0x00050> (wrapper remoting-invoke-with-check)
> System.Data.OleDb.OleDbCommand:ExecuteReader ()
> in <0x000ad> ASP.monomdb_aspx:btnLekerdezes_Click
> (object,System.EventArgs)
> in <0x00069> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_object_EventArgs
> (object,System.EventArgs)
> in <0x0009e> System.Web.UI.WebControls.Button:OnClick
> (System.EventArgs)
> in <0x00058>
> System.Web.UI.WebControls.Button:System.Web.UI.IPostBackEventHa
> ndler.RaisePostBackEvent (string)
> in <0x00016> System.Web.UI.Page:RaisePostBackEvent
> (System.Web.UI.IPostBackEventHandler,string)
> in <0x0003e> System.Web.UI.Page:RaisePostBackEvents ()
> in <0x002c3> System.Web.UI.Page:InternalProcessRequest ()
> in <0x000c2> System.Web.UI.Page:ProcessRequest
> (System.Web.HttpContext)
> in <0x002eb> ExecuteHandlerState:Execute ()
> in <0x00084> StateMachine:ExecuteState
> (System.Web.HttpApplication/IStateHandler,bool&)
>
> What do I doing wrong? What is the right connect string?
>
> Thanks!
>
> werd
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
--
Cory Nelson
http://www.int64.org