claracruz
asked on
Permission denied on CreateTextFile
Hi Experts,
I have a problem where read/write permissions has been given on the required directory, and other write requests are granted (though for .asp page creation). However, when I try to create an XML using the following code;-
Set objFS = CreateObject("Scripting.Fi leSystemOb ject")
Set objFile = objFS.CreateTextFile(filen ame)
I get error Permission Denied on line;
Set objFile = objFS.CreateTextFile(filen ame)
Any help appreciated.
Thanks
I have a problem where read/write permissions has been given on the required directory, and other write requests are granted (though for .asp page creation). However, when I try to create an XML using the following code;-
Set objFS = CreateObject("Scripting.Fi
Set objFile = objFS.CreateTextFile(filen
I get error Permission Denied on line;
Set objFile = objFS.CreateTextFile(filen
Any help appreciated.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try the IWAM_machine account, or whatever account is running your application pool. That is the identity which would create the file. Could be IWAM_machine, Local System (which would have access), Local Service, or Network Service, unless explicitly changed.
Best of luck,
harperse
Best of luck,
harperse
ASKER
samic400:,
IUSR_machine wasn't set correctly... problem solved
IUSR_machine wasn't set correctly... problem solved
ASKER