Hi all
I have this program i writing using C# 2003 and ASP.net, When i try to connect to the database it gives the error below. I do not know what is wrong, please help.
[
Server Error in '/BookFlight' Application.
The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\sibotho\My Documents\Visual Studio Projects\BookFlight\BookingFlights.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:\Documents and Settings\sibotho\My Documents\Visual Studio Projects\BookFlight\BookingFlights.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
Source Error:
Line 183: private void CustomValidator1_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)Line 184: {Line 185: oleDbConnection1.Open();Line 186:Line 187: oleDbDataAdapter1.SelectCommand.CommandText =
Source File: c:\inetpub\wwwroot\bookflight\login.aspx.cs Line: 185
Stack Trace:
[OleDbException (0x80004005): The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\sibotho\My Documents\Visual Studio Projects\BookFlight\BookingFlights.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() BookFlight.WebForm1.CustomValidator1_ServerValidate(Object source, ServerValidateEventArgs args) in c:\inetpub\wwwroot\bookflight\login.aspx.cs:185 System.Web.UI.WebControls.CustomValidator.OnServerValidate(String value) System.Web.UI.WebControls.CustomValidator.EvaluateIsValid() System.Web.UI.WebControls.BaseValidator.Validate() System.Web.UI.Page.Validate() System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) System.Web.UI.Page.ProcessRequestMain()
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
]
What am I Missing.