Hi
Following is the detail of an error that I am getting
************** Exception Text *************
System.Data.OleDb.OleDbException: Could not lock file
at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr
at System.Data.OleDb.OleDbConnection.InitializeProvider(
at System.Data.OleDb.OleDbConnection.Open(
at prjLogin.frmLogin.Login_Load(Object sender, EventArgs e
at System.Windows.Forms.Form.OnLoad(EventArgs e
at System.Windows.Forms.Form.OnCreateControl(
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible
at System.Windows.Forms.Control.CreateControl(
at System.Windows.Forms.Control.WmShowWindow(Message& m
at System.Windows.Forms.Control.WndProc(Message& m
at System.Windows.Forms.ScrollableControl.WndProc(Message& m
at System.Windows.Forms.ContainerControl.WndProc(Message& m
at System.Windows.Forms.Form.WmShowWindow(Message& m
at System.Windows.Forms.Form.WndProc(Message& m
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam
************** Loaded Assemblies *************
mscorli
Assembly Version: 1.0.5000.
Win32 Version: 1.1.4322.57
CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dl
---------------------------------------
prjLogi
Assembly Version: 1.0.1476.2044
Win32 Version: 1.0.1476.2044
CodeBase: file:///C:/Program%20Files/SIT/Loc%20Db/prjLogin.ex
---------------------------------------
System.Windows.Form
Assembly Version: 1.0.5000.
Win32 Version: 1.1.4322.57
CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dl
---------------------------------------
Syste
Assembly Version: 1.0.5000.
Win32 Version: 1.1.4322.57
CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dl
---------------------------------------
System.Drawin
Assembly Version: 1.0.5000.
Win32 Version: 1.1.4322.57
CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dl
---------------------------------------
System.Dat
Assembly Version: 1.0.5000.
Win32 Version: 1.1.4322.57
CodeBase: file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dl
---------------------------------------
System.Xm
Assembly Version: 1.0.5000.
Win32 Version: 1.1.4322.57
CodeBase: file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dl
---------------------------------------
Microsoft.VisualBasi
Assembly Version: 7.0.5000.
Win32 Version: 7.10.3052.
CodeBase: file:///c:/winnt/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dl
---------------------------------------
Following is the connection string
Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB
atabase Locking Mode=1;Data Source="F:\SIT\Db\TestDb.mdb";Mode=Share Deny None;Jet OLEDB:Engine Type=4;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System database=;Jet OLEDB:SFP=False;persist security info=False;Extended Properties=;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Create System Database=False;Jet OLEDB
on't Copy Locale on Compact=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=
The database is in Access 2000
Why is it giving the error even if the mode is set to share
Thanks in advance
LDV-ME