Search code examples
c#databasevisual-studio-2010ms-access-2007oledb

Database Connection: Visual Studio 2010 and Microsoft Access 2007(OleDbException was unhandled)


I am new in creating application using Visual Studio 2010 and Microsoft Access 2007. I tried connecting Visual Studio with MySQL as a database and it worked fine but when I changed it to MS Access I got errors stating that OleDbException was unhandled and could not find the file. The database file I created is in the same folder where the program is located

This is the printscreen of the error: enter image description here


Solution

  • The exception is telling you what the problem is: "The workgroup information file is missing or opened exclusively by another user".

    Microsoft has a full explanation and solution here.