473,411 Members | 2,009 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,411 software developers and data experts.

erro E_NOINTERFACE(0x80004002).

TJS
getting this error message when trying to open oledb connection to read a
delimited file

E_NOINTERFACE(0x80004002).

I have the schema.ini file in the folder with the delimited text file

what's missing ?

====code====
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.OleDb" %>

.....
Dim oCon As OleDBConnection = new OleDBConnection
Dim Adapter as OleDBDataAdapter = new OleDBDataAdapter

Dim strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & vFolderPath & ";" & _
"Extended Properties=""text;HDR=YES;FMT=Delimited"""
oCon.ConnectionString = strConnect

Adapter.selectCommand= new OleDbCommand("SELECT * FROM [" & vFileName &
"]",oCon)
Adapter.selectCommand.Connection.Open

Dim ds As New DataSet()
Adapter.Fill(ds)

.....
Nov 18 '05 #1
1 4799
This KB is about the same problem in ADO it might help you :

http://support.microsoft.com/default...port.microsoft.
com:80/support/kb/articles/q224/1/92.asp&NoWebContent=1

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Juerg Staub | last post by:
Hi, I have implemented IInternetProtocol and IInternetProtocolRoot in my protocol handler. Whenever I try to register the instance with IInternetSession::RegisterNameSpace, I receive a...
6
by: Daniel Santana | last post by:
Hi, could anyone help me? When I want to access AS400 database i use some code like the following: { string strDataSource = "128.2.2.2"; string strDBUser = "dbUser"; string strDBPass =...
1
by: Reshma Prabhu | last post by:
Hello, I am encountering a problem after installing VS2005 Beta 2. Whenever I try to open a Pocket PC application in Design mode, I am getting following exception:- Unable to cast COM object...
3
by: DM | last post by:
newbie trying to set up a Database and keep getting the same result. ERROR An error occured while retrieving the information from the database: Unable to cast COM object of type...
4
by: simon | last post by:
I created a reference in my project to SQLXMLBULKLOADLib. Then I create an instance: SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class bulkLoadObj = new SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class(); ...
0
by: TJS | last post by:
attempting to read a delimited text file into a dataset using oledb text file connection getting this error message when trying to open connection...
0
by: XML newbie: Urgent pls help! | last post by:
When I try to parse: I get the following error message: Unable to cast COM object of type 'Microsoft.SqlServer.MSXML6.DOMDocumentClass' to interface type 'MSXML2.ServerXMLHTTP40'. This operation...
0
by: XML newbie: Urgent pls help! | last post by:
I am using Vb.net. I am new to XML.I appreciate your help in advance. Please reply soon. When I try to parse: I get the following error message: Unable to cast COM object of type...
2
by: Mittalswati | last post by:
Hi All I am getting the below mentioned error while accessing the page which uses VB.Net Dll ,Please look in to the matter and suggest some solution Unable to cast COM object of type...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.