Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP E-commerce
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2004, 08:19 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to lp_1844
Default Help I get this Error Microsoft VBScript runtime

Technical Information (for support personnel)

    * Error Type:
      Microsoft VBScript runtime (0x800A01F4)
      Variable is undefined: 'path'
      D:\WEBSITES\WWW.95PRAYERS.COM\SITE\../include/db_connect.asp, line 9

    * Browser Type:
      Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3

    * Page:
      GET /site/check_login.asp

    * Time:
      Sunday, September 26, 2004, 7:09:06 PM

    * More information:

https://www.95prayers.com/site/check...t&txtpass=test

Hi,
I got this error on my website. This happens when I login. Now, I contacted hosting company makesure to check. Of course they are saying problem is @ my end. db_connect.asp in that page code:
<%
    'Dim StrCon
    'Dim Con
    'Dim path
    'Dim folderpath
    'Dim dbpath

    'dbpath="../include/db_connect.asp"
    path=Request.ServerVariables("PATH_TRANSLATED")
        folderpath=Mid(path,1,InstrRev(path,"\"))
    dbpath=Mid(folderpath,1,InstrRev(folderpath,"\site \")) & "database\95prayers.mdb"

    strCon="provider=microsoft.jet.oledb.4.0;data source=" & dbpath

    Set con = Server.CreateObject("ADODB.Connection")
    con.Open strCon

%>
Please Help! If you are using mozilla you have to pretend to buy something, click on checkout, then click on sign in. Thanks!
 
Old September 27th, 2004, 12:49 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, path *is* undefined since you have commented it out.

Uncomment the Dim statement ('Dim path) and it won't give you the same error again. You may need to repeat this for other variables you're using.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript runtime error '800a01a8' Abbas Classic ASP Basics 1 July 21st, 2006 11:43 AM
Microsoft VBScript runtime error '800a01a8' Abbas Classic ASP Professional 1 July 21st, 2006 11:42 AM
Microsoft VBScript runtime error '800a01b6' PGSloboda Classic ASP Professional 0 October 20th, 2005 12:10 PM
Microsoft VBScript runtime error '800a01a8' gmoney060 BOOK: Beginning ASP 3.0 1 June 2nd, 2004 01:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.