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.
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: