473,396 Members | 2,154 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,396 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 1660
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.