How do I determine the correct data path name?

I am Very new to FrontPage and "inherited" a website to modify.

The website works on the Internet.  I downloaded the files to a new directory I created and named "IMDB"
The global.asa file is in the folder C:\Inetpub\wwwroot
All the other website files are in the folder C:\Inetpub\wwwroot\IMDB

I get the following error message when I try to login (the table and query to determine if the User Name and Password match are in the MS Access file "Demo BE 839.mdb" which is in the folder named "fpdb" at C:\Inetpub\wwwroot\IMDB\fpdb):

"Error Type:
Microsoft JET Database Engine (0x80004005)
'c:\inetpub\wwwroot\fpdb\Demo BE 839.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.
/IMDB/Login_Validate.asp, line 5"

File Login_Validate.asp reads, in part:
1     <%
2        'Database Connection  --------
3       set CN = Server.CreateObject("ADODB.Connection")
4       CN.ConnectionString = Application("Database1_ConnectionString")
5       CN.Open
6      'Recordset  ------------------
7      set RS = Server.CreateObject("ADODB.Recordset")
8      strSQL = "SELECT Name, Password, UserNumber FROM qryUSysSecurity WHERE Name = '" & Request.Form("UserName") & "';"
9      'Testing ------------
10      'response.write "strSQL = " & strSQL & "<br>"

The global.asa file reads, in part:
5      '--Project Data Connection
6            Application("Database1_ConnectionString") = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=fpdb/Demo BE 839.mdb"
7            FrontPage_UrlVars(0) = "Database1_ConnectionString"

Where should the global.asa reside?
How do fix the error?
Who is Participating?
dopyiiiConnect With a Mentor Commented:
Well, you can't just run an ASP page without it running on a server (it's an Active Server Page after all).  If you have IIS installed and running, you can run it on your local server (if you have 2000, XP pro, etc.).  The pages are dynamically created by the asp script and then fed to the browser (hence the need for the server).

It might be a good idea to take a quick departure from this project and do a quick ASP tutorial or two.  Once you've got the groundwork, the rest should be easy.  Here are a couple that I'd recommend:
So you said that the .mdb file is in C:\Inetpub\wwwroot\IMDB\fpdb, right?  Well the URL you're passing appears to exclude the IMDB folder in the path (from the error: 'c:\inetpub\wwwroot\fpdb\Demo BE 839.mdb').  In your global.asa, have you tried changing your DBQ=URL= statement to IMDB/fpdb/Demo...?
bobbatAuthor Commented:
Yes, but that did not work so I put all the files back in the root directory.

Now I get "Authentication Error!" when I have "http://localhost/index.htm" in IE address window.

If I use "http://localhost/" in the IE address window the file "C:\Program Files\Belkin Bulldog Plus\WWWRoot\Login.htm" shows on my screen which is a bunch of UPS graphics by Belkin.  I don't know why my login.htm file does not show and it is at "C:\Inetpub\wwwroot\LogIn.htm".

Well, my comment was simply that your path looked wrong.  If everything is in a relative directory, then that resolves the path issue.  

If your login.htm file would have to be browsed to explicitly if it's not set as the default home page for your site (usually it's index.html, but this is configurable by the web host).  So, if you want to get to login.htm, you'll have to browse to http://localhost/login.htm (I think) to get there.  If you want it to be the default entry page when you go to localhost (or the server address), you'll have to change the name of the file to match what the server is expecting.  Log can login to your IIS server on your local machine to make these kind of changes as necessary.  Make sense?
bobbatAuthor Commented:
No, I'm sorry, I'm just too new this.  I want to run the website locally so I can learn ASP and then edit the site and republish it.  I want to rework the website to make it work locally.  My satellite connection is too slow to edit the Internet site.

What is "Log" and How do I use it to set the default login file, i.e. ". . . make these kind of changes as necessary."
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.