System.InvalidOperationException: ExecuteReader

  • Thread starter Thread starter Guest
  • Start date Start date
OK, i will try this, but in a webpage, because the Pc that don't work the
program, doesn't have installed visual studio .net

Thanks
 
Hello Cor, I have tried to show the information in the "catch" block, and i
get this:
Exception: System.Data.OleDB.OleDBException:No error information available:
0x800401F9
at System.data.oledb.oledbconnection.ProcessResults(Int32 hr)
at System.data.oledb.oledbconnection.CreateProviderError(Int32 hr)
at System.data.oledb.oledbconnection.CreateProvider(OleDbConnectionString
constr)
at System.Data.oledb.oldebdconnection.open()
at...
 
Negri,

We are probably all blind.

The creation of a connection will normally never thrown an error how many
Try blocks you set around it. It only places that string in the property
oledb.connectionstring.

The connection is actually executed in the open.

What I would do in your place is checking again your connection string.

I hope this helps,

Cor.
 
Hi Cor, i have tried to change connection string, but i don't get anything.
I'm going to open a new post, with the error, to try luck.
Thanks for everything.
 
Back
Top