0
votes

I make a c# form that read and write data to a Microsoft Access Database. It worked when i had windows 8.1 with access 2013. Then i had install windows 10 with access 2016 and the same program return this error: Cannot open database ''. It may not be a database that your application recognizes, or the file may be corrupt. The file isn't corrupt (i can open it with access). The file is small then 2GB (500 KB). How can I solve?

Please.

EDIT:
The password was too long, I solve with a password short then 13 char

2
How are you connecting to your access file? Are you using an ODBC? - David Lee
I use an oledb connection using System.Data.OleDb; - Davide Pizzolato

2 Answers

0
votes

Try installing the Access 2013 runtime.

From Microsoft:

The Microsoft Access 2013 Runtime enables you to distribute Access 2013 applications to users who do not have the full version of Access 2013 installed on their computers.

This should install the appropriate OLEDB drivers for you that you used to have on your old OS.

0
votes

The password was too long, I solve with a password short then 13 char