المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Access OleDb on x64



C# Programming
08-14-2009, 05:13 PM
all,

I had an application that could access an mdb file via OleDb (Provider=Microsoft.Jet.OLEDB.4.0).
I received a new machine now, which is an x64 and it stopped working. It only works if I open up the solution and press F5 (doesn't matter if it is release or debug). So I did some searching and changed the provider (Provider=Microsoft.ACE.OLEDB.12.0) which works the same as above and also used a target x86 platform to build the application (I read x64 wasn't supported). Same behaviour. double clicking the exe fails to open the database, pressing F5 works without problems.

Here's the error:
Error: Could not connect to database: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\vmalisse\Desktop\astrid_v21_result.mdb;User Id=admin;Password=;.
error: The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception.

Can anyone point me to the problem? I'm not quite sure what exactly is wrong.

thanks.

V.

Stop smoking so you can: Enjoy longer the money you save.
Moviereview Archive (http://members.chello.be/tina.vanlierde/MovieReview/)