469,336 Members | 5,643 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

Server.MapPath() error 'ASP 0172 : 80004005'

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?
Jul 19 '05 #1
7 13698
The problem is, you've used a physical path, and not a virtual one, just as
the message says.....

Either remove Server.MapPath(), or change the path to a virtual one.....
--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"A P" <ma**@textguru.ph> wrote in message
news:#y*************@TK2MSFTNGP12.phx.gbl...
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?

Jul 19 '05 #2
A P
i remove server.mapPath() like this:

<%
cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Z:\DB\access.mdb;"
set conn = CreateObject("ADODB.Connection")
conn.open cst
%>

the next error is this:

Microsoft JET Database Engine error '80004005'
Could not find file 'Z:\DB\access.mdb'.

/cn.asp, line 4

"Steven Burn" <pv*@noyb.com> wrote in message
news:eD**************@TK2MSFTNGP11.phx.gbl...
The problem is, you've used a physical path, and not a virtual one, just as the message says.....

Either remove Server.MapPath(), or change the path to a virtual one.....
--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"A P" <ma**@textguru.ph> wrote in message
news:#y*************@TK2MSFTNGP12.phx.gbl...
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?


Jul 19 '05 #3
Is the path to the file correct?

If so, take a look at;

www.connectionstrings.com

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"A P" <ma**@textguru.ph> wrote in message
news:uV**************@TK2MSFTNGP15.phx.gbl...
i remove server.mapPath() like this:

<%
cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Z:\DB\access.mdb;"
set conn = CreateObject("ADODB.Connection")
conn.open cst
%>

the next error is this:

Microsoft JET Database Engine error '80004005'
Could not find file 'Z:\DB\access.mdb'.

/cn.asp, line 4

"Steven Burn" <pv*@noyb.com> wrote in message
news:eD**************@TK2MSFTNGP11.phx.gbl...
The problem is, you've used a physical path, and not a virtual one, just

as
the message says.....

Either remove Server.MapPath(), or change the path to a virtual one.....
--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"A P" <ma**@textguru.ph> wrote in message
news:#y*************@TK2MSFTNGP12.phx.gbl...
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?



Jul 19 '05 #4
A P wrote:
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?


Is Z a local drive or a mapped drive to a remote machine?

http://www.aspfaq.com/show.asp?id=2009

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #5
See my answer in your other thread. Stick to one thread and pay
attention to the error messages.

Jeff

On Thu, 26 Aug 2004 12:36:37 +0800, "A P" <ma**@textguru.ph> wrote:
i remove server.mapPath() like this:

<%
cst = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Z:\DB\access.mdb;"
set conn = CreateObject("ADODB.Connection")
conn.open cst
%>

the next error is this:

Microsoft JET Database Engine error '80004005'
Could not find file 'Z:\DB\access.mdb'.

/cn.asp, line 4

"Steven Burn" <pv*@noyb.com> wrote in message
news:eD**************@TK2MSFTNGP11.phx.gbl...
The problem is, you've used a physical path, and not a virtual one, just

as
the message says.....

Either remove Server.MapPath(), or change the path to a virtual one.....
--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"A P" <ma**@textguru.ph> wrote in message
news:#y*************@TK2MSFTNGP12.phx.gbl...
> 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 enableweb > sharing on the Z:\AccessDB, is this required even though I set change
> permission on IUSR account?
>
>



Jul 19 '05 #6
Also see http://www.aspfaq.com/2168

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:u3**************@TK2MSFTNGP12.phx.gbl...
A P wrote:
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?


Is Z a local drive or a mapped drive to a remote machine?

http://www.aspfaq.com/show.asp?id=2009

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #7
A P
Hi Bob/Aaron!

Z is on my local drive.

Mark

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:OX**************@TK2MSFTNGP11.phx.gbl...
Also see http://www.aspfaq.com/2168

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:u3**************@TK2MSFTNGP12.phx.gbl...
A P wrote:
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?


Is Z a local drive or a mapped drive to a remote machine?

http://www.aspfaq.com/show.asp?id=2009

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Jul 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by darrel | last post: by
7 posts views Thread by benoit | last post: by
14 posts views Thread by Lorenzo | last post: by
4 posts views Thread by vunet.us | last post: by
17 posts views Thread by Anil Gupte | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.