|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
A VB - Datbase questionlReader = lCmd.ExecuteReader() causes this exception message Fail.ToString "System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is Open, Fetching. at System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String method, Int32& localState) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.OleDb.OleDbCommand.ExecuteReader() at CnCommon.VisualTheme.LoadTheme(String pvName) in C:\Documents and Settings\Cal\Desktop\junk\CnCommon\VisualTheme.vb:line 544" String Does this mean anything to you. I don't use database so there may be something wrong with it. Got a suggestion as to what I should look for? Thanks Hi,
I would check your connection string. Ken ------------------ Show quoteHide quote "**Developer**" wrote: > I downloaded some code. In it this code > lReader = lCmd.ExecuteReader() > > causes this exception message > > Fail.ToString "System.InvalidOperationException: ExecuteReader requires an > open and available Connection. The connection's current state is Open, > Fetching. > at System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String > method, Int32& localState) > at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior > behavior, String method) > at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) > at System.Data.OleDb.OleDbCommand.ExecuteReader() > at CnCommon.VisualTheme.LoadTheme(String pvName) in C:\Documents and > Settings\Cal\Desktop\junk\CnCommon\VisualTheme.vb:line 544" String > > Does this mean anything to you. > > I don't use database so there may be something wrong with it. > > Got a suggestion as to what I should look for? > > > Thanks > > > and you would find the problem.
Thanks Show quoteHide quote "Ken Tucker [MVP]" <KenTucker***@discussions.microsoft.com> wrote in message news:FA206087-5273-4512-805F-9E8F78F21E59@microsoft.com... > Hi, > > I would check your connection string. > > Ken > ------------------ > > "**Developer**" wrote: > >> I downloaded some code. In it this code >> lReader = lCmd.ExecuteReader() >> >> causes this exception message >> >> Fail.ToString "System.InvalidOperationException: ExecuteReader requires >> an >> open and available Connection. The connection's current state is Open, >> Fetching. >> at >> System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String >> method, Int32& localState) >> at >> System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior >> behavior, String method) >> at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior >> behavior) >> at System.Data.OleDb.OleDbCommand.ExecuteReader() >> at CnCommon.VisualTheme.LoadTheme(String pvName) in C:\Documents and >> Settings\Cal\Desktop\junk\CnCommon\VisualTheme.vb:line 544" String >> >> Does this mean anything to you. >> >> I don't use database so there may be something wrong with it. >> >> Got a suggestion as to what I should look for? >> >> >> Thanks >> >> >>
Which database should I use?
vbexpress and sql2000 How to set the TextBox digital only? Formatting the ComboBox editing window SCOPE_IDENTITY() help !!!! databinding with text box help urgent Wall Charts 2005 No Setup Project in 2005 Express Edition? Keep form on top of everything - even other apps ? |
|||||||||||||||||||||||