I’m having Silverlight with the c# application which connects to ms access database in the server. My connection string looks like,
Provider=Microsoft.JET.OLEDB.4.0; Data Source=\\151.12.1.99\DatabasePath\Database.mdb; Jet OLEDB:Database Password=Password;Mode= Read
It works fine when I execute the application directly without any error. But when I deploy the application it throws
"The Microsoft Jet database engine cannot open the file "\\151.12.1.99\DatabasePath\Database.mdb". It is already opened exclusively by another user, or you need permission to view its data.
Can any help me what is the problem? I’m opening the file in reading mode only.
Why dont you use a DSN instead ???
The problem is that once your app opens the .mdb file it stays “reserved” to that instance of the app. The easyest way arround this I think is to use a DSN, to let ODBC manage the database access.