HighDots Forums  

File system object: doesn't work !

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss File system object: doesn't work ! in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
b.a.th
 
Posts: n/a

Default 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


Reply With Quote
  #2  
Old   
J.S. \(UltraSuite\)
 
Posts: n/a

Default Re: File system object: doesn't work ! - 02-22-2005 , 05:48 AM






You need to give the relevant directory Read, Write and Delete permissions.

--
__________________________________________________ __________________
UltraSuite Extension Packages: http://www.ultrasuite.com/
The *most popular* Suites of DMX 2004 and DMX Server Behaviors
for ASP, ASP.Net, ColdFusion, JSP, and PHP_MySQL
__________________________________________________ __________________



Reply With Quote
  #3  
Old   
Julian Roberts
 
Posts: n/a

Default Re: File system object: doesn't work ! - 02-22-2005 , 07:16 AM



It's to do with your Anti virus software. Turn off active scripting or
something of that ilk. Have a look at the FSO section of www.aspfaqs.com for
more info.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.