Hello,
i'm trying to open files in a loop and i get permission denied error!
On the server the IUSR account has (Read&Execute + List Folder + Read )permissions (NTFS). IIS is set to use anonymous authentication.
I've checked twice that the correct path is passed to function.
Here is the beginning of the function :
Code:
Function GetContent(dPath)
Dim Path, objFSO, objStream, strFile
Path = Server.MapPath(dPath)
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objStream = objFSO.OpenTextFile(Path,ForReading,False,0)
The error comes at the last line here over.
Does I need write permission to open a file in ForReading mode?
Whats wrong?