3

I'm using an MS Access database to store data for a desktop application. This week I was asked to give access to the application to some additional users, but whenever they launch the application they are getting the error message:

Cannot open database ''. It may not be a database that your application recognizes, or the file may be corrupt.

I have gone through 5 pages of Google search results trying to find a solution and come up with nothing. Every answer I can find to this problem is either the 2GB limit (which my db is nowhere near) or corruption (which is not the case because only two new users are receiving this error and everyone else is fine).

This is my connection string:

"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=[Path];Jet OLEDB:Database Password=[Password];"

I'm pretty sure this is due to the users' machines missing something, but I cannot figure out what or where they can get it from. Please advise.

13
  • Where is your connection string stored? In a config file? If in a file, are you sure they have access to it? Commented Dec 23, 2013 at 22:24
  • @Brian It's not stored in a config file. Having access to the connection string is not an issue. Commented Dec 23, 2013 at 22:27
  • Is your db located on a network share? Did you check the read/write permissions for those new users? Commented Dec 23, 2013 at 22:29
  • 1
    You have a database password, which means it is encrypted. If that was done in Access 2010 or later without "legacy encryption", and the problem users all have Access 2007, that would account for the error. Commented Dec 23, 2013 at 22:30
  • 1
    Access drivers will be needed. Commented Dec 23, 2013 at 22:33

2 Answers 2

4

Your connection string indicates that you are using the Microsoft.ACE.OLEDB.12.0 driver.

This must be installed on the machine, as it doesn't come with windows.

You can find the driver in the Microsoft Access Database Engine 2010 Redistributable

Sign up to request clarification or add additional context in comments.

7 Comments

I am having a user try this now.
If that provider was not installed the error message should be "provider not found".
@HansUp You are probably right, but given that the database is coming back empty string, that seemed to indicate some sort of machine problem. If its successful on one machine and not another, and its not permissions, perhaps its a corrupt install of the driver.
@JdinklageMorgoone Do make sure they are in fact running the same version of the software as the functioning machine, I would hate for it to be something dumb.
@paqogomez The same version of which software - my application?
|
1

If the error is Cannot open database . It may not be a database that your application recognizes, or the file may be corrupt, make sure that the Database file (ACCDB/MDB) is not more than 2GB because that's the limit for any Access Database File.

Reference Here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.