FileSystemObject - OpenTextFile stucks

F

Fie Fie Niles

In my ASP (IIS 5.1), when I use oFile.OpenTextFile to open a file, the code
stucks.
How can I fix this problem? Thanks.

set oFile = CreateObject("Scripting.FileSystemObject")
strServerFileName = "files/fieldmap.txt"
If (oFile.FileExists(server.mappath(strServerFileName))) Then
Const ForReading = 1
Set fSubmit = oFile.OpenTextFile(server.mappath(strServerFileName),
ForReading, False) --->> stuck here
end if
 
F

Fie Fie Niles

Thanks! Unchecking the "Enable script blocking" in the Norton Antivirus
works !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top