Wrox Programmer Forums
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 6th, 2006, 12:12 AM
Registered User
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CreateObject fails


I have the following 2 simple scripts which give me runtime errors.
Would someone please help? Thanks.


dim filesys
Set filesys = CreateObject("Scripting.FileSystemObject")
Error Type:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'Scripting.FileSystemObject'
/hello.asp, line 6
dim filesys
Set filesys = CreateObject("Excel.Sheet")

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied: 'CreateObject'
/hello.asp, line 6

Old October 6th, 2006, 10:32 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

A common cause of this is that there is an anti-virus program preventing scripting running on the server.
Alternatively the classes may not be installed although I doubt that with the FileSystemObject.
As a side issue automating Excel via COM on a server is a risky and possibly illegal thing to do.


Joe (Microsoft MVP - XML)

Similar Threads
Thread Thread Starter Forum Replies Last Post
CreateObject error plsames VB How-To 3 October 14th, 2006 07:20 AM
How To use server.createobject in c# ranakdinesh C# 0 November 4th, 2005 08:18 AM
problem with CreateObject jg Classic ASP Components 0 August 28th, 2003 02:49 AM
problem with CreateObject jg Classic ASP Professional 0 August 26th, 2003 05:32 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.