Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am trying to open an MDB file from the database using OLEDBConnection class.
For this, i am using Open() method.

This method works fine in Windows XP(without returning any exception and opens the connection with the specified file).
However it fails in Windows 7. The method throws an exception "The Microsoft Jet database engine cannot open the file "<the file="" name="">". It is already opened exclusively by another user, or you need permission to view its data."

Can anyone helpme in this issue? This is proving to me major hindrance to my project execution.

i am using C# for the development purpose.

Thanks and Regards,
Kishor Reddy
Posted

1 solution

Well, the error message is pretty clear, isn't it?
This has nothing to do with your Windows version, it has to do with security and permissions.
Searching for that specific error message in Google gives you lots of solutions.
Solution[^]
Microsoft help[^]
Etc.[^]
See if those help and if they don't provide extra information as to why it doesn't :)
Hope it helps!
 
Share this answer
 
Comments
fjdiewornncalwe 28-Nov-11 14:14pm    
Of course. +5.
Sander Rossel 28-Nov-11 14:17pm    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900