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


I am using a upload.asp script to upload csv files to a database. Until now everything worked fine, but suddenly today I get this error:

Microsoft VBScript runtime error '800a01ad'

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

/admin/upload.asp, line 31

I haven't changed anything in the code on line 31:

set fso = CreateObject("Scripting.FileSystemObject")
   set myFile = fso.OpenTextFile(server.mappath(filename), 1, True)

Open in new window

Any thoughts?

Who is Participating?
Rikin ShahConnect With a Mentor Microsoft Dynamics CRM ConsultantCommented:

I assume you are logged in as Administrator, please have a look in registry for HKEY_CLASSES_ROOT\Scripting.FileSystemObject.

If you can not find this PROGID then you are missing the required files or the component is disabled (not registered).

Scripting.FileSystemObject is implemented in scrrun.dll.
You can register the dll via regsvr32.exe
webdesigner_dkAuthor Commented:
Hi! Thanks for the answer! No, this website is hosted so I don't have admin rights. Should I contact the hosting company about this?
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
Yes. Check with them and ask for the solution.
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

Scott Fell, EE MVEDeveloperCommented:
What webhosting service are you using and did they "upgrade" the servers or environment?
webdesigner_dkAuthor Commented:
The webhosting service is .ASP.  I'll check with the The web hosting company if they have upgraded their servers... they are very slow in replying...
Scott Fell, EE MVEDeveloperCommented:
>What webhosting service are you using

I mean, what is the name of the company?
All Courses

From novice to tech pro — start learning today.