Link to home
Start Free TrialLog in
Avatar of tomemer
tomemer

asked on

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

Until a few months ago, ASP pages that included creation of scripting.filesystemobect would run on my WinXP sp2 machine.  Now I get the error message  -ActiveX component can't create object: 'Scripting.FileSystemObject'   The ASP pages without scripting.filesystemobject run fine e.g. database connections, etc.

I have looked at folder and registry permissions and that does not appear to be a problem, tried once to reinstall the VBScripting engine (current version running is 5.7), and that made things worse - so I undid that and am back to the original problem.

There was a long post on this issue in xp-exch in 2005 with a lot of chatter and no resolution.  I'm hoping in the time since that it has been resolved.  Any takers?

sample of what generates error

<% objFso = CreateObject ("Scripting.FileSystemObject")%>

if I use the following, <% objFso = Server.CreateObject ("Scripting.FileSystemObject")%>  I get a different error - Invalid Class String

Avatar of Emad Gawai
Emad Gawai
Flag of United Arab Emirates image

Avatar of _Stilgar_
Try this (Assuming this is a server side issue):

Set objFso = Server.CreateObject ("Scripting.FileSystemObject")

Stilgar.
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the grade.  Is there any chance you could post here which changes you made, just for clarity, if it's not too complicated?

Thanks,

Rob.