K
K0
Hi everyone
I have a problem opening a connection to an access 2000 db from ASP.NET
Sometimes (and only sometimes) i get an exception raised (0x80004005
couldn't lock file) when trying to open the connection, this happens only on
the production machine while my development machine behaves well.
I have set full control for ASPNET user on both the mdb file and the folder
that contains it. The problem seems to appear only when another windowsforms
program is working.
I have installed MDAC 2.7 sp1, dotnet framework 1.1 and italian langpack 1.1
The connectionstring is as follows:
Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=d:\work\mrt\db\mrt.mdb;
User ID=Admin;Password='';
Mode=Share Deny None;
Extended Properties='';
Jet OLEDB:System database='';
Jet OLEDBatabase Password='';
Jet OLEDB:Registry Path='';
Jet OLEDB:Engine Type=5;
Jet OLEDBatabase Locking Mode=1;
Jet OLEDB:Global Partial Bulk Ops=2;
Jet OLEDB:Global Bulk Transactions=1;
Jet OLEDB:New Database Password='';
Jet OLEDB:Create System Database=False;
Jet OLEDB:Encrypt Database=False;
Jet OLEDBon't Copy Locale on Compact=False;
Jet OLEDB:Compact Without Replica Repair=False;
Jet OLEDB:SFP=False
What I would like to know is if its right to set Mode=Share Deny None or
should I use read/write? And also what does DataBase Locking Mode=1?
Thanx to anyone answering
Bye
I have a problem opening a connection to an access 2000 db from ASP.NET
Sometimes (and only sometimes) i get an exception raised (0x80004005
couldn't lock file) when trying to open the connection, this happens only on
the production machine while my development machine behaves well.
I have set full control for ASPNET user on both the mdb file and the folder
that contains it. The problem seems to appear only when another windowsforms
program is working.
I have installed MDAC 2.7 sp1, dotnet framework 1.1 and italian langpack 1.1
The connectionstring is as follows:
Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=d:\work\mrt\db\mrt.mdb;
User ID=Admin;Password='';
Mode=Share Deny None;
Extended Properties='';
Jet OLEDB:System database='';
Jet OLEDBatabase Password='';
Jet OLEDB:Registry Path='';
Jet OLEDB:Engine Type=5;
Jet OLEDBatabase Locking Mode=1;
Jet OLEDB:Global Partial Bulk Ops=2;
Jet OLEDB:Global Bulk Transactions=1;
Jet OLEDB:New Database Password='';
Jet OLEDB:Create System Database=False;
Jet OLEDB:Encrypt Database=False;
Jet OLEDBon't Copy Locale on Compact=False;
Jet OLEDB:Compact Without Replica Repair=False;
Jet OLEDB:SFP=False
What I would like to know is if its right to set Mode=Share Deny None or
should I use read/write? And also what does DataBase Locking Mode=1?
Thanx to anyone answering
Bye