Make sure you don't have an anti-virus that is running a script-blocking utility. Also, try here:
microsoft.public.inetserver.asp.general
Thank you. I hope this information is helpful.
Tim Coffey [MSFT]
This posting is provided ?AS IS? with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft
Corporation. All rights reserved.
--------------------
| From: "tchav" <
tchavdar@hotmail.com>
| References: <#
6UyXlLcDHA.2408@TK2MSFTNGP10.phx.gbl><
6d97de46.0309011225.2a4e35ba@posting.google.com>
| Subject: Re: cannot access FSO
| Date: Tue, 2 Sep 2003 12:16:31 +0200
| Lines: 62
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.0
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Message-ID: <#
woTRtTcDHA.2932@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.inetserver.iis
| NNTP-Posting-Host: d51a482c5.kabel.telenet.be 81.164.130.197
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.iis:273360
| X-Tomcat-NG: microsoft.public.inetserver.iis
|
| Matt,
|
| Thanks for your advise!
| I've tried with registering scrrun.dll but unfortunately it didn't help.
|
| I suppose I have to spent more time on MS Knowledge base to look for
| solution...
|
| greets
| Tchavdar
|
| "Matt Simner" <
matt_simner@hotmail.com>wrote in message
| news:
6d97de46.0309011225.2a4e35ba@posting.google.com...
|>Hi,
|>
|>I tried the code and it works fine for me, but you might want to try
|>Server.CreateObject as a rule of thumb in ASP (although Server-side it
|>shouldn't make too much difference). The delay's a bit weird...
|>
|>Do you get any error messages? - have you got an 'on error resume
|>next' statement anywhere...
|>
|>It sounds like the Scripting Runtime has got itself unregistered
|>
|>check c:\winnt\system32\scrrun.dll exists and then open a command
|>window and type...
|>
|>regsvr32 c:\winnt\system32\scrrun.dll
|>
|>and try again.
|>
|>Cheers,
|>
|>Matt Simner
|>
|>
|>"tchav" <
tchavdar@hotmail.com>wrote in message
| news:<#
6UyXlLcDHA.2408@TK2MSFTNGP10.phx.gbl>...
|>>Hi all,
|>>
|>>old system: Win NT 4, IIS 4, SiteServer 3...
|>>anyway, I cannot access FileSystemObject. simple code:
|>>
|>><%
|>>Set fs = CreateObject("Scripting.FileSystemObject")
|>>Set wfile = fs.OpenTextFile("c:\myfile.txt")
|>>filecontent = wfile.ReadLine
|>>wfile.close
|>>Set wfile=nothing
|>>Set fs=nothing
|>>%>
|>>
|>>result is that I get the page after a long delay and I never get the
| content
|>>of myfile.txt
|>>
|>>any idea what could be the possible cause of this?
|>>
|>>thx in advance
|>>tchavdar
|
|
|
-