Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Server.MapPath() error 'ASP 0172 : 80004005'

Reply
Thread Tools

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

 
 
A P
Guest
Posts: n/a
 
      08-26-2004
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?


 
Reply With Quote
 
 
 
 
Steven Burn
Guest
Posts: n/a
 
      08-26-2004
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" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> 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?
>
>



 
Reply With Quote
 
 
 
 
A P
Guest
Posts: n/a
 
      08-26-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > 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?
> >
> >

>
>



 
Reply With Quote
 
Steven Burn
Guest
Posts: n/a
 
      08-26-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > news:#(E-Mail Removed)...
> > > 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?
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      08-26-2004
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"


 
Reply With Quote
 
Jeff Cochran
Guest
Posts: n/a
 
      08-26-2004
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" <(E-Mail Removed)> 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" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>> 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" <(E-Mail Removed)> wrote in message
>> news:#(E-Mail Removed)...
>> > 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?
>> >
>> >

>>
>>

>


 
Reply With Quote
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      08-26-2004
Also see http://www.aspfaq.com/2168

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




"Bob Barrows [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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"
>
>



 
Reply With Quote
 
A P
Guest
Posts: n/a
 
      08-27-2004
Hi Bob/Aaron!

Z is on my local drive.

Mark

"Aaron [SQL Server MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Also see http://www.aspfaq.com/2168
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
> "Bob Barrows [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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"
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xffc Thread 0x228 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-30-2006 03:16 PM
Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified) hfk0 ASP .Net 2 03-27-2006 08:43 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 1 03-24-2006 04:20 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-24-2006 02:22 PM
Error 500: ERROR: Cannot forward. Writer or Stream already obtained. Error JavaQueries Java 1 03-01-2005 06:30 PM



Advertisments