473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

IErrorInfo.GetDescription failed with E_FAIL(0x80004005)

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
1 10398
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Arif | last post by:
In my C# application all queries runs well both with MS Access and SQL Server databses. But only the following query runs well on SLQ Server2000 but with MS Access gives error =>...
0
by: ayha1999 | last post by:
Hi, Has anybody ever encountered this error? When using the OLEDbDataReader with Access I get the following error: "IErrorInfo.GetDescription failed with E_FAIL(0x80004005)" ayha
1
by: VB Programmer | last post by:
I am getting a "IErrorInfo.GetDescription failed with E_FAIL" error when trying to do a "Fill" on a dataadapter. Any ideas?? The SQL command seems good (to an Access db). Here is the general...
5
by: ray well | last post by:
i'm using a standard access 2000 mdb file, and i have used many before, thru ado.net when i run the DataAdapter configuration wizard, i get the following message the wizard detected the...
0
by: mkl | last post by:
Hello I use this code to read a Excel File. Dim connectString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=e:\test\bla.xls;Extended Properties='Excel .0;HDR=YES;'"...
0
by: Anish G | last post by:
I am trying to do Excel Import with Oledb. It is working fine in my local machine. But when i upload it to live server, getting the below given error: E_FAIL(0x80004005) Any help will be...
0
by: Nathan Sokalski | last post by:
I am recieving the following error message when I call the Fill() method in ASP.NET/VB.NET: IErrorInfo.GetDescription failed with E_FAIL(0x80004005). I have looked for help on this error...
1
by: 1983.yadav | last post by:
Hi All, I m Pankaj, i ve a problem in accessing data from MS-Access Table. The error is System.Data.OleDb.OleDbException: IErrorInfo.GetDescription failed with E_FAIL(0x80004005) My query to...
0
by: kuzen | last post by:
Hi Main.Cmd.CommandText = "SELECT ID, NAME FROM NAMES;" Main.DA.SelectCommand = Main.Cmd Main.DT = New DataTable Main.DA.Fill(Main.DT) ComboBox3.DataSource = Main.DT ComboBox3.ValueMember =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.