File system object: doesn't work ! -
02-22-2005
, 05:34 AM
Hi, I need help. I have tried to implement an FSO-based simple logging using
an example I found. I'm using IIS, IE, ASP, VBScript. The problem is,
REGARDLESS what kind of code I do, my web page 'gets stuck' (progress bar at 2
or 3 sections, doesn't move), nothing happens, I haven't even passed the
CreateObject of the FSO ! For example, even this simple code doesn't work:
sTr = 'Test of log' Call writelog(sTr) Response.Write('Done') Sub
writelog(lstr1) Dim fs,fname Set
fs=Server.CreateObject('Scripting.FileSystemObject ') if Not
(fs.FileExists('logasp.txt'))=true Then Set
fname=fs.CreateTextFile('logasp.txt',true) fname.WriteLine(lstr1)
fname.Close Else Dim f Set f=fs.OpenTextFile('logasp.txt',8,true)
f.WriteLine(lstr1) f.Close Set f=Nothing End if Set fname=nothing Set
fs=nothing End Sub Then, after that, all other pages of mine which normally
work fine tend to get stuck also, I have to kill the browser and start it
again. What's happening ??? Does one has to enable someting in IIS for the FSO
to work ? What am I missing ? Thanks for your help. Regards b.a.th |