ActiveX component can't create object: 'Scripting.FileSystemObject'
Posted on 2005-09-05
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)
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.