IIS File System Object problem

R

royzda1

Guest
I'm having a nightmare trying to get the File System Object to work on my XP/IIS 5.1 box. I have granted the appropriate permissions. Does anyone know if I have to do anything special for this to work? I have a XP/IIS 5.0 box and it works fine with the default IIS settings after install. Below is the code I am using. When stepping the code in InterDev, the CreateObject line executes, then, on the OpenTextFile, IIS stops responding. No error, nothing, it will try to execute this line forever. I expected it to timeout eventually, but nothing. Any help will be greatly appreciated.


Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")

Set MyFile = ScriptObject.OpenTextFile("C:\Temp\testing.txt", 8, True)

MyFile.WriteLine "*** Write File Test ***"
MyFile.WriteLine " file was written to at: " & Now
MyFile.WriteLine " "
MyFile.Close

set ScriptObject = nothing
set MyFile = nothing
 
If you are ignorant to the subject, then keep the posts to yourself.
 
ignorant?? WTF u talkin about, i was just saying that IIS sucks and APACINE is better
 
This isn't a thread asking for your opinion on webservers. The fact is I'm asking a question about IIS. Not Apache. If I wanted someone's opinion on Apache, do you think I would be posting on a Windows XP forum? And yes ignorant. That means you lack knowledge on a given subject, that subject being IIS. So you need to go play somewhere else.
 
no offence, but IIS is a basically a trojan, if you want to give EVERYONE access to your whole computer, continue, but you seem like an intelligent person, so get apache instead

sacarasc
 
This forum is useless. THE COMPANY I WORK FOR IS 100% MICROSOFT! I agree with everything you guys are saying, but Apache is not an option. I'm just looking for the answer to a problem. Apache is the answer to a DIFFERENT QUESTION! Just forget it. I'll find the solution somewhere else.
 
royzda1

why are you trying to step through the code in InterDev if it works? if you could explain that then maybe someone here could help you.
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back