navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Problem with FileSystemObject

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Server Issues >> Problem with FileSystemObject
Page: [1]
 
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

_____________________________




(in reply to neuRopac)
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

(in reply to Giomanach)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Problem with FileSystemObject - 10/12/2004 0:54:03   
Is there any error shown?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to neuRopac)
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?

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Problem with FileSystemObject - 10/12/2004 1:06:02   
You mention localhost - do you have norton running?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to neuRopac)
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.........

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Problem with FileSystemObject - 10/12/2004 1:32:09   
But you are running on your local PC?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to neuRopac)
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

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
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


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to neuRopac)
neuRopac

 

Posts: 8
Joined: 10/9/2004
Status: offline

 
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................:)

(in reply to Spooky)
Page:   [1]

All Forums >> Web Development >> Server Issues >> Problem with FileSystemObject
Page: [1]
Jump to: 1





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