Jump to content

What Is Wrong With This?


NCC10281982B

Recommended Posts

I keep getting the following error on my page.

 

Server Error in '/' Application.

--------------------------------------------------------------------------------

 

'c:\websites\ullr\..fpdb\students.mdb' 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: 'c:\websites\ullr\..fpdb\students.mdb' 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 18: objCommand = New OleDbCommand(sql, objConnection)

Line 19:

Line 20: objConnection.Open()

Line 21: objDR = objCommand.ExecuteReader(system.data.CommandBehavior.CloseConnection)

Line 22: BssDataGrid.DataSource = objDR

 

I keep getting the following error on my page.

 

Server Error in '/' Application.

--------------------------------------------------------------------------------

 

'c:\websites\ullr\..fpdb\students.mdb' 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: 'c:\websites\ullr\..fpdb\students.mdb' 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 18: objCommand = New OleDbCommand(sql, objConnection)

Line 19:

Line 20: objConnection.Open()

Line 21: objDR = objCommand.ExecuteReader(system.data.CommandBehavior.CloseConnection)

Line 22: BssDataGrid.DataSource = objDR

 

 

Source File: c:\websites\ullr\secure\editrecords.aspx Line: 20

 

The script is located at: c:\websites\ullr\secure\editrecords.aspx

 

The Database file is located at: 'c:\websites\ullr\fpdb\students.mdb'

 

I have tried the following code to make the script run, all of which return an error like the one above.

 

objConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("..\fpdb\students.mdb") & ";")

 

objConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("\..fpdb\students.mdb") & ";")

 

objConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source="'c:\websites\ullr\fpdb\fpdb\students.mdb")

 

Source File: c:\websites\ullr\secure\editrecords.aspx Line: 20

 

The script is located at: c:\websites\ullr\secure\editrecords.aspx

 

The Database file is located at: 'c:\websites\ullr\fpdb\students.mdb'

 

I have tried the following code to make the script run, all of which return an error like the one above.

 

objConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("..\fpdb\students.mdb") & ";")

 

objConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("\..fpdb\students.mdb") & ";")

 

objConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source="'c:\websites\ullr\fpdb\fpdb\students.mdb")

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...