ASP FAQ Tutorials 8000XXXX Errors
Alerts
ASP.NET 2.0
Classic ASP 1.0 COM / ActiveX Components Forms General Topics Date/Time Routines Email Scripts & Info Files/Directories & FSO
Databases
General Concepts
Search Engine Optimization (SEO)
| ASP FAQ Tutorials :: Classic ASP 1.0 :: Files/Directories & FSO :: Why do I get 'Permission Denied' errors with FileSystemObject?
Why do I get 'Permission Denied' errors with FileSystemObject?
Permission Denied, when dealing with the FileSystemObject, has to do with local file and folder permissions for the anonymous user (IUSR_<machine_name>). To open a text file forReading (1), IUSR_<machine_name> must have read access in the folder the file is located. To open a text file forWriting (2) or forAppending (8), or to create a text file, IUSR_<machine_name> must have read and write access in the folder. Rather than alter the permissions for IUSR_<machine_name>, giving him/her access to various parts of your machine, my recommendation is to first pursue placing any such text files within the web structure, or in any other place that IUSR_<machine_name> already has access. The more you alter file- and folder-level permissions to suit your application, the more open your system will be for attack... and the more maintenance you will have to do if your application should ever move to a new server. Related Articles Can I include a file in both server-side and client-side script?
Can I read / write a user's file without a prompt?
Can I rename a file using FileSystemObject?
Could I get some help working with files using FileSystemObject?
How do I avoid 'the red x' when an image is missing?
How do I change the modified time of a file?
How do I create / manipulate images from ASP?
How do I dynamically include files?
How do I find the owner, author, and other properties of a file?
How do I get a list of a folder's subfolders?
How do I get the name of the current URL / page?
How do I prevent people from 'leeching' my CSS or JS files?
How do I prevent people from 'leeching' my images?
How do I retrieve a random file from a given folder?
How do I send the correct filename with BinaryWrite?
How do I sort a list of files?
How do I use FileSystemObject to create a file on the client?
Why do I get 'Disk not ready' errors with FileSystemObject?
Why do I get 'Invalid procedure call or argument'?
Why do I get 'Path not found' errors with Scripting.FileSystemObject?
Why do I get 800A0034 errors?
Why do I get 800A003E / Input past end of file errors?
Why do I get 800A0BBA errors?
Why do I get 800A0BBC errors?
Why do I get an 'Invalid Path Character' error?
Why do I get permissions errors after upgrading to Windows XP?
Why does FileSystemObject hang all of a sudden?
Why is 'the operation completed successfully' an error message?
|