Search code examples
c#sqlms-access

c# Cannot open Database - Windows 10 Access 2016


I make a c# form that read and write data to a Microsoft Access Database.
But I got 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 MS Access).
The file is way smaller than the 2GB limit (500 KB).
How can I solve?


Solution

  • The password was too long, I solved it with a password shorter than 13 characters