[Mono-list] mdb problem on Linux

mdb teszt mdb@freemail.hu
Wed, 17 Nov 2004 11:22:07 +0100 (CET)


Yes, because i can't open the connect :-(
I try some connect string, but they don't work.
What is the correct povider, parameters? Can You give me an working=20
example?


Cory Nelson <phrosty@gmail.com> =EDrta:

> InvalidOperationException: State !=3D Open
>=20
>=20
> On Wed, 17 Nov 2004 09:31:43 +0100 (CET), mdb teszt=20
<mdb@freemail.hu> wrote:
> > Hi,
> >=20
> > I'm trying to get an OleDbConnection to my mdb database file.
> > I get an error message when I try use DataReader:
> >=20
> > Stack Trace: System.InvalidOperationException: State !=3D 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=20
()
> > 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>
> >=20
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&)
> >=20
> > What do I doing wrong? What is the right connect string?
> >=20
> > Thanks!
> >=20
> > werd
> >=20
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >=20
>=20
>=20
> --=20
> Cory Nelson
> http://www.int64.org
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>=20