nmretd
Jul 2nd, 2000, 07:13 AM
I am getting the following error, can someone explain how I can fix this please ?
Server.MapPath() error 'ASP 0172 : 80004005'
Invalid Path
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
I am using the following code to connect to the Database:
<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>
<%
Dim DATA_PATH, objDC, objRS, email, user, pass, sendmail
DATA_PATH=Server.Mappath("c:/InetPub/wwwroot/userlogon/MyData.mdb")
Set objDC = Server.CreateObject("ADODB.Connection")
objDC.ConnectionTimeout = 15
objDC.CommandTimeout = 30
objDC.Open "DBQ=" & DATA_PATH & _
";Driver={Microsoft Access Driver (*.mdb)}; " & _
"DriverId=25;MaxBufferSize=8192;Threads=20;", _
"admin", "password"
Set objRS = Server.CreateObject("ADODB.Recordset")
email=request.form("email")
objRS.Open "SELECT * FROM tblUSR WHERE name = '" & _
name & "'", objDC, 0, 1
%>
Server.MapPath() error 'ASP 0172 : 80004005'
Invalid Path
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
I am using the following code to connect to the Database:
<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>
<%
Dim DATA_PATH, objDC, objRS, email, user, pass, sendmail
DATA_PATH=Server.Mappath("c:/InetPub/wwwroot/userlogon/MyData.mdb")
Set objDC = Server.CreateObject("ADODB.Connection")
objDC.ConnectionTimeout = 15
objDC.CommandTimeout = 30
objDC.Open "DBQ=" & DATA_PATH & _
";Driver={Microsoft Access Driver (*.mdb)}; " & _
"DriverId=25;MaxBufferSize=8192;Threads=20;", _
"admin", "password"
Set objRS = Server.CreateObject("ADODB.Recordset")
email=request.form("email")
objRS.Open "SELECT * FROM tblUSR WHERE name = '" & _
name & "'", objDC, 0, 1
%>