Solved

How do I determine the correct data path name?

Posted on 2006-06-23
5
228 Views
Last Modified: 2013-12-24
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?
0
Comment
Question by:bobbat
  • 3
  • 2
5 Comments
 
LVL 20

Expert Comment

by:dopyiii
ID: 17000855
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...?
0
 

Author Comment

by:bobbat
ID: 17019697
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".

Help!
0
 
LVL 20

Expert Comment

by:dopyiii
ID: 17019914
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?
0
 

Author Comment

by:bobbat
ID: 17020608
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."
0
 
LVL 20

Accepted Solution

by:
dopyiii earned 500 total points
ID: 17020677
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:

http://msdn.microsoft.com/library/default.asp?URL=/library/en-us/dnasp/html/aspatoz.asp
http://www.w3schools.com/asp/default.asp
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now