cryptic error

Discussion in 'Classic ASP' started by keitjas, Jan 16, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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. "
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    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.

    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">
     
  3. 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
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page