IErrorInfo.GetDescription failed with E_FAIL(0x80004005)

  • Thread starter Thread starter TG
  • Start date Start date
T

TG

This is a snippet from my code. When I run it, I get the error
message "IErrorInfo.GetDescription failed with E_FAIL(0x80004005). "
I can't find anything online that helps me to understand the cause.
Can someone please help?
****************************************
Dim SelectQuery As String = "SELECT ExchangeID, Surname,
GivenName, Initials FROM Global-List"
Dim ConnString As String =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\db2.mdb;User
Id=admin;Password=;"

Dim Conn As New OleDbConnection(ConnString)
Conn.Open()
Dim Cmd As New OleDbCommand(SelectQuery, Conn)
Dim DReader As OleDbDataReader

DReader = Cmd.ExecuteReader()'<-------------CODE FAILS
HERE!!!!!!!!!!

While DReader.Read()
Console.WriteLine()
End While

DReader.Close()
Conn.Close()
****************************
 
Hi Tguilor,

I can not reproduce the problem with the code you provide.
I suggest you recreate a new project and test the code with a new
database.e.g. the northwind.mdb shipped with Access.


Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
 
Back
Top