473,378 Members | 1,312 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,378 software developers and data experts.

OleDBConnection.Open() Problem

Hello NG !
I would like to open a MS Access Db by C#.
I use the following code:

string strConnectionText = @"Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=C:\SWDev\My_Programs\Controller\DataBase\Te st.mdb";
OleDBConnection dbConnection = new OleDBConnection();
dbConnection.ConnectionString = strConnectionText;
dbConnection.Open();

But i allways get a error that I do not have the MDAC 2.6 or later.
But the component checker showns me that i have MDAC 2.8...
Whats wrong ???

Thanks and regards
Marcel Hug
Dec 28 '05 #1
2 1655
Hi,

The code is fine , so you may have a problem with mdac versions you have
installed , have you tried the program in another computer?

what about if you reinstall mdac?

these errors are a pain :(
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Marcel Hug" <ma**********@ch.abb.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hello NG !
I would like to open a MS Access Db by C#.
I use the following code:

string strConnectionText = @"Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=C:\SWDev\My_Programs\Controller\DataBase\Te st.mdb";
OleDBConnection dbConnection = new OleDBConnection();
dbConnection.ConnectionString = strConnectionText;
dbConnection.Open();

But i allways get a error that I do not have the MDAC 2.6 or later.
But the component checker showns me that i have MDAC 2.8...
Whats wrong ???

Thanks and regards
Marcel Hug

Dec 28 '05 #2
Ignacio Machin ( .NET/ C# MVP ) schrieb:
Hi,

The code is fine , so you may have a problem with mdac versions you have
installed , have you tried the program in another computer? No possability !!! :-(((
what about if you reinstall mdac? I have allready done, but no improvment

these errors are a pain :(

Yes they are.
Dec 28 '05 #3

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

Similar topics

1
by: Matthias Kwiedor | last post by:
Hello! My Application is Multi-Threaded, where i have several threads which get datas and write them to the database, or have to read from the database to compare the datas and make updates if...
2
by: Grant | last post by:
My C# web application connects to an Access database using the OleDbConnection and OleDbDataReader. I have 3 other computers that connect to this server but very frequently I get an 'Unspecified...
3
by: Ludvig | last post by:
This Exception is executed when using SQLConnection. OleDbConnection connects fine. System.EnterpriseServices.Platform.Initialize() +503...
7
by: Miro | last post by:
I think i have found my problem following an example ive searched for on the net. I am using vb.net 2005 express. What I am looking for is a drag drop from the toolbar that is an...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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...

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.