Problem with FileSystemObject (Full Version)

All Forums >> [Web Development] >> Server Issues



Message


neuRopac -> Problem with FileSystemObject (10/9/2004 1:18:26)

i wrote an ASP code to craete a textfile,to write text"Hello world",and to read and display it in a browser.

but when i tried to execute that , (localhost)IIS keep on reading that file and Brwser's progress bar comes to a half and stood there for long long long time....I am not getting the result at all......

but i tried in someother system in our department it worked correctly...so i think the code may not be wrong......but problem is in my IIS server(localhost).............could any one please help me out>?

code is like one below
<%
dim fs,tfile
set fs=Server.CreateObject("Scripting.FileSystemObject")
set tfile=fs.CreateTextFile("c:\inetpub\wwwroot\neuRopac\test.txt")
tfile.WriteLine("Hello World!")
Set f=fs.OpenTextFile(Server.MapPath("test.txt"), 1)
Response.Write(f.ReadAll)
tfile.close
f.close
set tfile=nothing
set fs=nothing
%>




Giomanach -> RE: Problem with FileSystemObject (10/11/2004 7:36:16)

neuRopac

Ensure the server has FileSystemObjects Enabled, set a script timeout, and ensure that Read, Write and Execute permissions are enabled for Anon Access

HTH




neuRopac -> RE: Problem with FileSystemObject (10/12/2004 0:41:57)

thank you Giomanach sir for your reply ,

Sir i have checked the permissions ,it is all correct as you mentioned but can u plz tell me how can i enable fileSystemObject in server(localhost).

Script time out is 900 seconds by default in my server,what value i sud set up for this?

plz help me out




Spooky -> RE: Problem with FileSystemObject (10/12/2004 0:54:03)

Is there any error shown?




neuRopac -> RE: Problem with FileSystemObject (10/12/2004 0:59:33)

no errors sir,

IIS still keeps reading and browser's progress bar comes to a half and standing there.......

How can i enable FileSystemObject in server?




Spooky -> RE: Problem with FileSystemObject (10/12/2004 1:06:02)

You mention localhost - do you have norton running?




neuRopac -> RE: Problem with FileSystemObject (10/12/2004 1:15:47)

no sir ,

Norton is not running in my system.........




Spooky -> RE: Problem with FileSystemObject (10/12/2004 1:32:09)

But you are running on your local PC?




neuRopac -> RE: Problem with FileSystemObject (10/12/2004 1:56:55)

yes sir i am running in my local pc......

i have set server script time out to 120 seconds but,,......
after 120 seconds elapsed it sud show some errors like know sir,,,,,,but it is not showing any errors ,browser still keeps reading




Spooky -> RE: Problem with FileSystemObject (10/12/2004 2:06:22)

Do you run any antivirus / firewall programs?
If not norton, then mcAffee may do the same thing :

http://www.aspfaq.com/show.asp?id=2180




neuRopac -> RE: Problem with FileSystemObject (10/12/2004 2:15:02)

Thank you very much indeed to help me out......

I am now getting it worked........
I am running mcafee in my system and i disabled the script blocking...

now it is working great......

Thank you very much once again................[:D]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875