Q

Question

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

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.

201409-LO-Qu-017

Get Smarter with
Active Server Pages (ASP)


79,713

Answers


2,500+

Articles & Videos


26,207

Contributors

Ask the Active Server Pages (ASP) Experts Your Question

Sign Up to Ask

Cancel anytime

What does a Premium Membership get you?

  • Unlimited Access to over 4 million verified technology solutions

  • Unlimited Access to thousands of interactive articles and videos

  • Unlimited technical writing assistance

  • Submit your projects for Expert Testing

  • Expand your professional network with our messaging and hire me features

  • Ad free and mobile optimized experience

Join the Network Today!

See Plans and Pricing