Search Persits Software Knowledge Base

 

Article PS02062099

The system cannot find the file specified error when saving to a wwwroot subdirectory

Problem Description

When saving uploaded files to a sub-directory of the c:\Inetpub\wwwroot directory with AspUpload, the methods Upload.Save or Upload.SaveVirtual may generate the following error:

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

Solution

Despite what the error message says, the problem is caused by a lack of permissions rather than an invalid path.

The current user (such as IUSR_machinename) must have Full Control over the upload directory to be able to create files in it. You can instantly fix this problem by giving the "Everyone" account Full Control over the upload directory, then tighten security as appropriate. To change permissions on a folder, right-click on it in Windows Explorer, then select Properties/Security.

Created: 6/20/2002 11:57:55 AM
Last Modified: 6/20/2002 11:57:55 AM

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