Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > automation server cant create object

Reply
Thread Tools

automation server cant create object

 
 
sonu
Guest
Posts: n/a
 
      09-12-2005
I am tring to create activexobject like var
Fo =new ActiveXObject("Scripting.FileSystemObject");

but i am finding error that
automation server cant create object

any help

 
Reply With Quote
 
 
 
 
Erwin Moller
Guest
Posts: n/a
 
      09-13-2005
sonu wrote:

> I am tring to create activexobject like var
> Fo =new ActiveXObject("Scripting.FileSystemObject");
>
> but i am finding error that
> automation server cant create object
>
> any help


Hi,

Standard recipe to solve problems:

1) google for: ActiveXObject("Scripting.FileSystemObject")
2) follow first link
3) read:

************************************
To program with the FileSystemObject (FSO) object model:

* Use the CreateObject method to create a FileSystemObject object.
* Use the appropriate method on the newly created object.
* Access the object's properties.

The FSO object model is contained in the Scripting type library, which is
located in the Scrrun.dll file. Therefore, you must have Scrrun.dll in the
appropriate system directory on your Web server to use the FSO object
model.
************************************

So it looks like you miss Scrrun.dll

Regards,
Erwin Moller
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      09-13-2005


sonu wrote:

> I am tring to create activexobject like var
> Fo =new ActiveXObject("Scripting.FileSystemObject");
>
> but i am finding error that
> automation server cant create object


Is that script inside of IE? Depending on the security settings IE
indeed does not allow script to create such objects as script access to
the local file system is a potential security problem.
Consider writing an HTA (HTML application) with that script as then you
can create such objects without the restrictions a browser imposes.
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/hta_node_entry.asp>


--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Supressing the ctrl-c and other keys during word automation in automation apondu ASP .Net 0 07-19-2007 09:10 PM
cant compile on linux system.cant compile on cant compile onlinux system. Nagaraj C++ 1 03-01-2007 11:18 AM
IE error: Automation server can't create object Tim Javascript 4 01-02-2006 11:15 PM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
"Automation server can't create object" when creating new page in W2003 Ueslei R. Valentini ASP .Net 1 01-16-2004 12:45 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57