ActiveX component can't create object: 'Scripting.FileSystemObject'

    Question by:
    On

    Topics:

    I am having difficulty with invoking the Scripting.FileSystemObject ActiveX Component via ASP. I am using IIS 5.1 on a Windows XP Professional system. I keep recieving "Error Type: Microsoft VBScript runtime (0x800A01AD) ActiveX component can't create object: 'Scripting.FileSystemObject'" when calling a simple script I have used many times before. The code is as follows:

    Const LOGFilePath= "H:\NOTES.txt"
    str = "Yeah, Whatever"
    Set fsox = CreateObject("Scripting.FileSystemObject")
    Set stream = fsox.OpenTextFile(LOGFilePath, 8, True)
    stream.WriteLine str

    After doing some research, I downloaded and installed the latest Windows Script 5.6 for Windows 2000 and XP. This has now caused all ASP to fail on my test system. I now receive "The page cannot be displayed" errors across the board, where as before the ASP pages would render and just not invoke FileSystemObject. I have also uninstalled and then reinstalled IIS. Any help concerning this matter is greatly appreciated.

    Good Question?
    0
     

    ?

    The member who asked this question verified this comment provided the solution that solved their problem.

    Accepted Solution on 2005-09-08 at 08:14:25ID: 14845187

    Sometimes you just have to count your losses and reload Windows... I am sure it is not the 500 point answer you were hoping for, but it will probably fix your problem...

    @acperkins & kiddanger:  Can't we all just get along???


    :-)


    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201511-LO-Qu-074

    Extend your technology team with the Experts Exchange community.

    — trusted by —

    Who answers my questions?Our community has technology experts around the world.

    Alexandre Simões

    6

    Articles

    1,022

    Solutions

    Expert in:

    • .NET Programming
    • C#
    • JavaScript
    • Visual Basic.NET
    • ASP.NET

    Big Monty

    1,367

    Solutions

    Expert in:

    • ASP
    • JavaScript
    • Web Development-Other
    • ASP.NET
    • HTML

    Robert Schutt

    1,242

    Solutions

    Expert in:

    • JavaScript
    • .NET Programming
    • Visual Basic.NET
    • ASP.NET
    • C#

    Scott Fell

    1

    Articles

    3,584

    Solutions

    Expert in:

    • ASP
    • HTML
    • Web Development-Other
    • CSS
    • JavaScript

    Jim Horn

    18

    Articles

    10,530

    Solutions

    Expert in:

    • MS Access
    • MS SQL Server
    • MS SQL Server 2008
    • MS SQL Server 2005
    • Query Syntax

    Paul Maxwell

    9

    Articles

    2,790

    Solutions

    Expert in:

    • MS SQL Server
    • MS SQL Server 2008
    • Query Syntax
    • MS SQL Server 2005
    • Oracle Database

    manumd

    61

    Solutions

    MSSystems

    37

    Solutions

    Mandeep Singh

    1

    Articles

    54

    Solutions

    RELATED TOPICS view all topics

    1. ASP.NET
      (122,120)
    2. JavaScript
      (117,365)
    3. Web Development-Other
      (72,075)
    4. VB Script
      (35,497)
    5. Microsoft IIS Web Server
      (35,046)
    6. Web Languages/Standards-Other
      (39,426)
    7. HTML
      (56,083)
    8. MS SQL Server
      (154,726)
    9. MS Access
      (214,082)
    10. .NET Programming
      (131,139)