ASP VBScript - Write to a Text File

Windows File Security & ASP

Notes:

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/myaspexamples/MyTextFileA.asp, line <some line #>

Fix: (under construction - need to get working on several PCs/Servers)
1) Make sure you use full path names and not relative to start off with.
2) XP Pro - Create an alias using IIS Manager for that directory.  Then use Win Explorer to add "Write" permissions (see below for steps).
Note: Just using IIS Manager to add the "Write" permission didn't solve my problem.  I was testing with http://localhost.

Win XP Pro - Win Explorer - Directory Security:

Windows 2000 - Win Explorer - Directory Security:

Other Notes


XP Professional:  IIS Manager
IIS Manager - right click on the directory and choose "Property" then click on "Directory Security"
Click Edit in the section called "Anonymous access and authentication control".
Check - Anonymous access
Check - Allow IIS to control password.
User Name should be:  IUSR_<your machine name>
Check - Integrated Windows authentication.
 

Permissions & OS Systems - keep in mind that different Windows OSs may work differently.

Users: ( Needs write access to the directory. )
IUSR_<machinename>
IWAM_<machinename>

Other thoughts:
Anonymous Access
Guest Access

 

<windows OS directory>\SYSTEM32\SCRRUN.DLL -