Groups | Blog | Home
all groups > inetserver asp db > august 2004 >

inetserver asp db : Server.MapPath() error 'ASP 0172 : 80004005'



Steven Burn
8/26/2004 5:23:02 AM
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!


[quoted text, click to view]

Steven Burn
8/26/2004 5:40:28 AM
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!


[quoted text, click to view]

Bob Barrows [MVP]
8/26/2004 5:56:59 AM
[quoted text, click to view]

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"

Aaron [SQL Server MVP]
8/26/2004 11:09:27 AM
Also see http://www.aspfaq.com/2168

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




[quoted text, click to view]

jeff.nospam NO[at]SPAM zina.com
8/26/2004 11:42:51 AM
See my answer in your other thread. Stick to one thread and pay
attention to the error messages.

Jeff

[quoted text, click to view]
A P
8/26/2004 12:18:34 PM
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?

A P
8/26/2004 12:36:37 PM
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



[quoted text, click to view]

A P
8/27/2004 8:08:54 AM
Hi Bob/Aaron!

Z is on my local drive.

Mark

[quoted text, click to view]

AddThis Social Bookmark Button