- Server Error in '/' Application.
- '\\psf\Home\Desktop\Assignment\Assignment\FlightDatabase.accdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
- 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: '\\psf\Home\Desktop\Assignment\Assignment\FlightDatabase.accdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
- Source Error:
- Line 26: {
- Line 27: OleDbConnection con = new OleDbConnection(Properties.Settings.Default.ConnectionString);
- Line 28: con.Open();
- Line 29: string cmdStr = "select count(*) from Users where Username='" + txtUsername.Text + "'";
- Line 30: OleDbCommand Checkuser = new OleDbCommand(cmdStr, con);
- Source File: C:\Users\Dave\Desktop\Assignment\Assignment\Login.aspx.cs Line: 28
- Stack Trace:
- [OleDbException (0x80004005): '\\psf\Home\Desktop\Assignment\Assignment\FlightDatabase.accdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.]
- System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +351
- System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
- System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +31
- System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +76
- System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126
- System.Data.OleDb.OleDbConnection.Open() +43
- Assignment.Login.btnLogin_Click(Object sender, EventArgs e) in C:\Users\Dave\Desktop\Assignment\Assignment\Login.aspx.cs:28
- System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
- System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
- System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
- System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
- System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
- System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272