|
| |
|
|
neuRopac
Posts: 8 Joined: 10/9/2004 Status: offline
|
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
Posts: 6090 Joined: 11/19/2003 From: England Status: offline
|
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
Posts: 8 Joined: 10/9/2004 Status: offline
|
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
|
|
|
|
neuRopac
Posts: 8 Joined: 10/9/2004 Status: offline
|
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?
|
|
|
|
neuRopac
Posts: 8 Joined: 10/9/2004 Status: offline
|
RE: Problem with FileSystemObject - 10/12/2004 1:15:47
no sir , Norton is not running in my system.........
|
|
|
|
neuRopac
Posts: 8 Joined: 10/9/2004 Status: offline
|
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
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|