cat
05-15-2003, 11:24 PM
I have this code in global.asa file :
Sub Application_OnStart
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
VisitCountFile = Server.MapPath("visitcounter.txt")
Set Outinf = FileObject.OpenTextFile(VisitCountFile,1,FALSE,FALSE)
Application("visit")=Outinf.ReadLine
Application("VisitCountFile")=VisitCountFile
End Sub
I install VBscript 5.6 on server, but whenever I restart server, file global.asa stop working (If clients access this website, their web browsers suspend), and I must install vbscript 5.6 again, then global.asa works well.
I don't know why ? what happened with my server ?. Help me. Thank a lot.
Sub Application_OnStart
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
VisitCountFile = Server.MapPath("visitcounter.txt")
Set Outinf = FileObject.OpenTextFile(VisitCountFile,1,FALSE,FALSE)
Application("visit")=Outinf.ReadLine
Application("VisitCountFile")=VisitCountFile
End Sub
I install VBscript 5.6 on server, but whenever I restart server, file global.asa stop working (If clients access this website, their web browsers suspend), and I must install vbscript 5.6 again, then global.asa works well.
I don't know why ? what happened with my server ?. Help me. Thank a lot.