Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another FSO hang problem opening text files

Status
Not open for further replies.

bgreenhouse

Technical User
Feb 20, 2000
231
CA
Hi

I'm trying to do a small scale templating thing where I just pull the content text out of a text file, and insert it into the template. The server just hangs - no error messages, no response when I try to do it with the following code:

Code:
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
ContentFile = Server.MapPath ("home_page.txt")
if objFSO.FileExists(ContentFile) then
	Set objbody_text = objFSO.OpenTextFile(ContentFile, 1,1)
	Response.write ("ContentFile")
else
	Response.write("nope")
End if

It just hangs - ANy suggestions?

Ben
 
Does it hang with a blank screen and no error msg? I have had this before but if you do a View Source you can extract the error message from that. Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Thanks Tony

It just hangs without any error message. I figured it out though, so if anyone is having the same problem...I saw on another list that people were having that problem when using Norton Systemworks. I had Norton Antivirus, so I shut down the script blocking option (which I think is enabled by default), and it worked like a charm. So if you have any Norton utilities running and are getting a similar problem, try shutting them down.

B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top