krappleby025
Programmer
Hi all, can you help,
I am trying to access a database, from a website, that is situated on the same computer, but not on the website.
i am using an access database, accounting system, which is not allocated on the website, but i have the database on a non website HD.
the database path is f:/accounts/database/krapp2.mdb
the asp coding i am using is
<% Cons1.Open( "DRIVER={Microsoft Access driver (*.mdb)}; DBQ=" & server.MapPath("f:/accounts/database/krapp2.mdb" ) )
%>
the error i am gettin is
Server.MapPath() error 'ASP 0172 : 80004005'
Invalid Path
/Cutomerlogin/default.asp, line 22
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
any ideas on what code i should be using,
any ideas will be appreciated.
thanks
I am trying to access a database, from a website, that is situated on the same computer, but not on the website.
i am using an access database, accounting system, which is not allocated on the website, but i have the database on a non website HD.
the database path is f:/accounts/database/krapp2.mdb
the asp coding i am using is
<% Cons1.Open( "DRIVER={Microsoft Access driver (*.mdb)}; DBQ=" & server.MapPath("f:/accounts/database/krapp2.mdb" ) )
%>
the error i am gettin is
Server.MapPath() error 'ASP 0172 : 80004005'
Invalid Path
/Cutomerlogin/default.asp, line 22
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
any ideas on what code i should be using,
any ideas will be appreciated.
thanks