I have one web page in my project that works fine against this database. I can read and write to it without any problem with oledbcommands and oledataadapters. Every other form tells me the database is locked or I don't have permission. the test I just did just has a connection, dataadapter, dataset and one dropdownlist control that I try to populate on load. Here is the message:
The Microsoft Jet database engine cannot open the file 'C:\STC\STC-Competitions.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot open the file 'C:\STC\STC-Competitions.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
Source Error:
Line 92:
Line 93: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Line 94: Me.OleDbDataAdapter1.Fill(DataSet21)
Line 95: DataBind()
Line 96:
Source File: C:\Inetpub\wwwroot\STCnew\WebForm6.aspx.vb Line: 94
Stack Trace:
[OleDbException (0x80004005): The Microsoft Jet database engine cannot open the file 'C:\STC\STC-Competitions.mdb'. It is already opened exclusively by another user, or you need permission to view its data.]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
System.Data.OleDb.OleDbConnection.InitializeProvider()
System.Data.OleDb.OleDbConnection.Open()
System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)
System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
STCnew.WebForm6.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\STCnew\WebForm6.aspx.vb:94
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()