Search Persits Software Knowledge Base

 

Article PS02011784

The system cannot find the path specified error

Problem Description

When using AspUpload, the methods Upload.Save or Upload.SaveVirtual generate the following error:

Persits.Upload.1 (0x800A0005)
The system cannot find the path specified.

Solution

Reason 1: The specified path cannot be found by the system.

If you are using the Save method, you must pass a full existing physical path, not a virtual path or URL, for example:

' Incorrect
Upload.Save "upload"

' Incorrect
Upload.Save "/upload"

' Incorrect
Upload.Save "http://www.yourserver.com/upload"

' Correct
Upload.Save "c:\upload"

' Correct
Upload.Save "\\server\share\path"

If you are using SaveVirtual, you must pass a virtual path. The SaveVirtual method internally converts the specified virtual path into a physical path using the built-in Server.MapPath method. For example:

' Save to virtual directory "upload"
Upload.SaveVirtual "/upload"

' Save to root directory
Upload.SaveVirtual "/"

' Save to current directory
Upload.SaveVirtual "."

In both cases, you must make sure the physical path to be used exists on your server.

Reason 2: Lack of permissions.

This error may occur when trying to save to the IIS home directory at c:\InetPub\wwwroot or in a path underneath it.

Despite what the error message says, the problem is caused by a lack of permissions rather than an invalid path. For more information, see the following article:

PS01032618: 800A0005 Access is denied error

Created: 2/8/2002 5:26:41 AM
Last Modified: 3/5/2002 12:37:08 PM

Copyright © Persits Software, Inc. 1998 - 2018
For technical support, write to support@persits.com.