PDA

View Full Version : cryptic error


keitjas
01-16-2004, 04:43 AM
Anyone know how this error can be fixed?

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

Invalid Path

/Album/photo_upload_post.asp, line 34

The Path parameter for the MapPath method must be a virtual path. A physical path was used. "

bruce
01-17-2004, 05:56 AM
Couple things can cause this error

1) Permission is not valid, ie. anonymous user do not have change permission

2) Path is wrong

If this doesn't help, please post your code.

[b]quote:Originally posted by keitjas

Anyone know how this error can be fixed?

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

Invalid Path

/Album/photo_upload_post.asp, line 34

The Path parameter for the MapPath method must be a virtual path. A physical path was used. "

</blockquote id="quote"></font id="quote">

steurm
01-18-2004, 03:28 AM
Server.mappath gives you the fysical path of the virtual path you provide it

for instance, Server.MapPath("test/myfile.asp"), might return you c:\inetpub\wwwroot\MyWebsite\test\myfile.asp.

so, if you provide allready a physical path to this method, it will give you an error, since he cannot map that.

If this was not the case, please post your code !

--
Steurm
www.steurm.net/steurm