J
John Baima
I have a small website that uses one MDB (Access) database. The
program works fine on my development machine, but it crashes when I
try to deploy it.
I'm getting the error message:
"The Microsoft Jet database engine cannot open the file
'C:\WebDb\vocab.mdb'. It is already opened exclusively by another
user, or you need permission to view its data."
But that is bogus. The file exists (I get a different message if the
file is not there). The file is not opened by another process, and I
have no idea why having the file in another location causes a
permission problem. The connection string is:
"Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=1;Data Source=""C:\WebDb\vocab.mdb"";Jet
OLEDB:Engine Type=5;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet
OLEDB:System database=;Jet OLEDB:SFP=False;persist security
info=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Encrypt
Database=False;Jet OLEDB:Create System Database=False;Jet OLEDBon't
Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";
What am I doing wrong???
-John
John Baima
program works fine on my development machine, but it crashes when I
try to deploy it.
I'm getting the error message:
"The Microsoft Jet database engine cannot open the file
'C:\WebDb\vocab.mdb'. It is already opened exclusively by another
user, or you need permission to view its data."
But that is bogus. The file exists (I get a different message if the
file is not there). The file is not opened by another process, and I
have no idea why having the file in another location causes a
permission problem. The connection string is:
"Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=1;Data Source=""C:\WebDb\vocab.mdb"";Jet
OLEDB:Engine Type=5;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet
OLEDB:System database=;Jet OLEDB:SFP=False;persist security
info=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Encrypt
Database=False;Jet OLEDB:Create System Database=False;Jet OLEDBon't
Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";
What am I doing wrong???
-John
John Baima