A
A P
I receive an error like this:
Server.MapPath() error 'ASP 0172 : 80004005'
Invalid Path
/conn.asp, line 2
The Path parameter for the MapPath method must be a virtual path. A physical
path was used.
the conn.asp code :
<%
cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath("Z:\AccessDB\access.mdb")
set conn = CreateObject("ADODB.Connection")
conn.open cst
%>
Do I need to locate the mdb file inside the wwwroot? how about enable web
sharing on the Z:\AccessDB, is this required even though I set change
permission on IUSR account?
Server.MapPath() error 'ASP 0172 : 80004005'
Invalid Path
/conn.asp, line 2
The Path parameter for the MapPath method must be a virtual path. A physical
path was used.
the conn.asp code :
<%
cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath("Z:\AccessDB\access.mdb")
set conn = CreateObject("ADODB.Connection")
conn.open cst
%>
Do I need to locate the mdb file inside the wwwroot? how about enable web
sharing on the Z:\AccessDB, is this required even though I set change
permission on IUSR account?