#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    17
    Rep Power
    0

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


    Hi,

    I have the following error:

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

    Invalid Path Character(s)

    /upload_documents_form.asp, line 26

    An invalid '/' or '\' was found in the Path parameter for the MapPath method


    My asp code is like below:

    fName = ""
    Set fs = Server.CreateObject("Scripting.FileSystemObject")
    folderPath = "doc/" & RanCode
    folderAbsPath_Doc = Server.MapPath(folderPath & "/doc") ///
    /// This line is error line 26

    Please, can anyone give me any idea or advice how to solve
    this error.

    Thanks in advanced.
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,424
    Rep Power
    4539
    When you're dealing with paths using the filesystem object you need to use windows backslash. Forward slash in a path isn't valid in the windows filesystem.
    ======
    Doug G
    ======
    The man who doesn't read good books has no advantage over the man who can't read them.
    --Mark Twain

IMN logo majestic logo threadwatch logo seochat tools logo