Groups | Blog | Home
all groups > dotnet ado.net > june 2005 >

dotnet ado.net : Error 0x800401F9 opening a OleDbConnection.open()



Negri
6/30/2005 9:53:02 AM
Hi, i've a little program in VB .NET that run fine in several desktop, but i
have others that don't work and get this exception, when execute a Open() in
a OleDBConnection to Access MDB.
The desktop have installed several version of MDAC: 7 sp1, 8, 8 sp1...
I don't find info about this error.
Paul Clement
7/1/2005 8:38:47 AM
[quoted text, click to view]

¤ Hi, i've a little program in VB .NET that run fine in several desktop, but i
¤ have others that don't work and get this exception, when execute a Open() in
¤ a OleDBConnection to Access MDB.
¤ The desktop have installed several version of MDAC: 7 sp1, 8, 8 sp1...
¤ I don't find info about this error.
¤ Can anybody help me please??

Can you post your connection string?


Paul
~~~~
Negri
7/1/2005 9:01:02 AM
Yes of course:

BD = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\temp\datos.mdb)




[quoted text, click to view]
Negri
7/5/2005 8:26:04 AM
Yes, the quote mark is copy/paste error...
Thanks for everything, i'm going to try the last jet engine.


[quoted text, click to view]
Paul Clement
7/5/2005 8:56:53 AM
[quoted text, click to view]

¤ Yes of course:
¤
¤ BD = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
¤ Source=C:\temp\datos.mdb)
¤

Other than the missing quote mark character, which I will assume is a typo, the connection string
looks OK. If this is working on other machines I would suspect there is a configuration problem.

Have you tried upgrading to the latest Jet database engine SP?

http://support.microsoft.com/default.aspx?scid=kb;en-us;239114


Paul
~~~~
Negri
7/5/2005 11:38:01 AM
I have tried upgrade to the last version of jet engine, but i get the same
error.
I have no idea, what can i do?

[quoted text, click to view]
Paul Clement
7/6/2005 7:41:05 AM
[quoted text, click to view]

¤ I have tried upgrade to the last version of jet engine, but i get the same
¤ error.
¤ I have no idea, what can i do?
¤

Have you tried compacting and/or repairing the Access database?


Paul
~~~~
Negri
7/6/2005 8:35:02 AM
Yes, I have repaired the database. The user can open the database with
Access. He can modify data, modify desing. But the program can't open the
database.
It's very rare.

[quoted text, click to view]
Paul Clement
7/6/2005 2:17:11 PM
[quoted text, click to view]

¤ Yes, I have repaired the database. The user can open the database with
¤ Access. He can modify data, modify desing. But the program can't open the
¤ database.
¤ It's very rare.
¤

It's possible that you may have a corrupt MDAC installation. See if the following helps:

http://www.macropool.com/en/download/mdac_xp_sp2.html

You can also use the Component Checker utility for MDAC to verify your installation.

http://www.microsoft.com/downloads/details.aspx?FamilyID=8F0A8DF6-4A21-4B43-BF53-14332EF092C9&displaylang=en


Paul
~~~~
Negri
7/7/2005 11:56:04 PM
YEEEEEEEEEEEEEESSSSSSSSSSSSS !!!!!
I did this procedure

[quoted text, click to view]

And the program works fine again !!!
Thanks very much Paul.


[quoted text, click to view]
AddThis Social Bookmark Button