Forum Moderators: open

Message Too Old, No Replies

Something Strange

FileStreamObject.OpenTextFile failure

         

tesla

12:14 am on Apr 14, 2003 (gmt 0)

10+ Year Member



I have had the following code in my .asp files for some time:

Set FileStreamObject = CreateObject("Scripting.FileSystemObject")
Set TextStream = FileStreamObject.OpenTextFile(Full_Path,1)

Just out of the blue my system will no longer run the OpenTextFile statement in the second line. The Browser will just sit there claiming it is loading the page, for hours. I have only seen it time out once and it had a reference like: "Remote Procedure Call Failed"
I tried setting the time-out short like this:
Server.ScriptTimeout = 10
But that apparently had no affect.

The odd thing is that I have not altered the ASP files with this code, so the problem must be my system. I took the code and ran it on another server and it worked fine. I reinstalled IIS and it had no affect. I scanned my system for viruses and found none.

Does anyone know what could be going on here?

Xoc

10:54 am on Apr 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe the registry entries for the scripting runtime are corrupted.

To fix that, do start ¦ run, then type

regsvr32 c:\winnt\system32\scrrun.dll

where c:\winnt is the name of your windows directory. Press OK.

tesla

4:27 am on Apr 18, 2003 (gmt 0)

10+ Year Member




XOC,

That was it! Thanks so much. I wonder what caused the corruption? I would have never found this on my own. Thanks again.