IErrorInfo.GetDescription failed with E_FAIL(0x80004005)

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()
****************************
 
P

Peter Huang [MSFT]

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.

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top