Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3036
  • Last Modified:

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

Hey!

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)
   i=0

Open in new window


Any thoughts?

Thanks.
0
webdesigner_dk
Asked:
webdesigner_dk
  • 2
  • 2
  • 2
1 Solution
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
Hi,

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
0
 
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?
0
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
Yes. Check with them and ask for the solution.
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
Scott Fell, EE MVEDeveloperCommented:
What webhosting service are you using and did they "upgrade" the servers or environment?
0
 
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...
0
 
Scott Fell, EE MVEDeveloperCommented:
>What webhosting service are you using

I mean, what is the name of the company?
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now