Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 2.86 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Server Error in '/' Application.
  2. '\\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.
  3. 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.
  4.  
  5. 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.
  6.  
  7. Source Error:
  8.  
  9. Line 26:         {
  10. Line 27:             OleDbConnection con = new OleDbConnection(Properties.Settings.Default.ConnectionString);
  11. Line 28:             con.Open();
  12. Line 29:             string cmdStr = "select count(*) from Users where Username='" + txtUsername.Text + "'";
  13. Line 30:             OleDbCommand Checkuser = new OleDbCommand(cmdStr, con);
  14.  
  15.  
  16. Source File: C:\Users\Dave\Desktop\Assignment\Assignment\Login.aspx.cs    Line: 28
  17.  
  18. Stack Trace:
  19.  
  20. [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.]
  21.    System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +351
  22.    System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
  23.    System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +31
  24.    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +76
  25.    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126
  26.    System.Data.OleDb.OleDbConnection.Open() +43
  27.    Assignment.Login.btnLogin_Click(Object sender, EventArgs e) in C:\Users\Dave\Desktop\Assignment\Assignment\Login.aspx.cs:28
  28.    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
  29.    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
  30.    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  31.    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  32.    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  33.    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
  34.  
  35.  
  36. Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272