By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,637 Members | 1,967 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,637 IT Pros & Developers. It's quick & easy.

IErrorInfo.GetDescription failed with E_FAIL(0x80004005)

P: n/a
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()
****************************
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

--------------------
From: tg******@ems.jsc.nasa.gov (TG)
Newsgroups: microsoft.public.dotnet.languages.vb
Subject: IErrorInfo.GetDescription failed with E_FAIL(0x80004005)
Date: 19 Sep 2003 05:44:22 -0700
Organization: http://groups.google.com/
Lines: 26
Message-ID: <82**************************@posting.google.com >
NNTP-Posting-Host: 139.169.181.160
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1063975462 27956 127.0.0.1 (19 Sep 2003 12:44:23 GMT)X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: 19 Sep 2003 12:44:23 GMT
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwix.com!newsfeed.cwix.co
m!tdsnet-transit!newspeer.tds.net!sn-xit-02!sn-xit-06!sn-xit-09!supernews.co
m!postnews1.google.com!not-for-mailXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:139391
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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


Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.