473,382 Members | 1,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 14322
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Abdul Azeem | last post by:
Hi! Any one has Idea, How to use Server.Transfer and Server.Execute, When I tried to use these methods I got an eror: Server object error 'ASP 0230 : 80004005' Server.Transfer Error...
24
by: Lovely Angel | last post by:
Dear Friends Hope you doing great. I have recently shifted to a webhost which is Using Windows 2003 and IIS 6. Now my application was working fine earlier but now I am facing this problem ...
4
by: Laphan | last post by:
Hi All Sorry to be irate, but the whole concept of Server.MapPaths really has me in a tiswas!! In order to confirm once and for all, could you please advise me on the following: 1) There...
3
by: Chris | last post by:
I have yet to understand or get a response on the issue I'm having. I'm taking an asp web application and migrating it from Windows 2K to 2003. I have the new website location (2003) settings...
6
by: darrel | last post by:
I have some functions that are reading/writing to the file system. As such, they use server.mapPath a lot to navigate it all. Since I'm using these functions numerous times throughout my...
7
by: benoit | last post by:
Hi, if I write this code to retrieve a folder on the server Server.mappath("/DATA") I get this error message System.InvalidOperationException: Failed to map the path '/DATA' the virtual...
14
by: Lorenzo | last post by:
Hello, I have a web application with a virtual directory in it. With 'virtual directory' i mean a folder whose physical path is different from the physical path of the application, but in which...
4
by: vunet.us | last post by:
How to use server.mappath() parent folder correctly: Server.MapPath("../test.asp") Thank you for the hint.
17
by: Anil Gupte | last post by:
I am using the following to try to connect to the database, but it does not seem to be working. Dim sConnString sConnString = "Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.