DonationCoder.com Forum

DonationCoder.com Software => Find And Run Robot => Mouser's Zone => FARR Plugins and Aliases => Topic started by: mouser on May 26, 2009, 10:13 PM

Title: Fscript error
Post by: mouser on May 26, 2009, 10:13 PM
this same error was posted on other threads (https://www.donationcoder.com/forum/index.php?topic=13231.msg111949#msg111949) about farr plugin fscript problems..

lanux has suddenly started getting this error.. and i cant figure out why:
Script error in .\fscript.js : Automation server can't create object

it seems to be related to this call:
var fso=ActiveXObject("Scripting.FileSystemObject")

does that shed any clue?
Title: Re: Fscript error
Post by: mouser on May 26, 2009, 10:17 PM
this seems relevant:

http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/6c5b3c2a-d3da-432c-b304-be90b802e29b

and:
http://blogs.msdn.com/jledgard/archive/2004/08/23/automation-server-can-t-create-object-and-other-vs-2002-2003-start-page-problems-issues-and-bugs.aspx
Title: Re: Fscript error
Post by: mouser on May 26, 2009, 10:23 PM
it seems like the root of this problem might be security issue where windows doesnt want to allow the js to create such a filesystem object.

ecaradec if you are reading this -- i wonder if one solution might be to let the fscript.js ASK THE FScript.dll for a pointer to a FileSystemObject activex object?

might that solve the problem where windows doesnt trust js to create an activex, but the dll would have no problem doing so?
Title: Re: Fscript error
Post by: ecaradec on May 27, 2009, 02:29 AM
Hello mouser,
I'm not sure it will fix the issue. I've put the jscript engine in unsafe mode to avoid those verifications. The origin of the issue came from the FileSystemScript object. I could build a test project that does a CoCreateInstance on FileSystemObject first and test it on some computer that has the issue. What do you think ?
Title: Re: Fscript error
Post by: mouser on May 27, 2009, 03:28 AM
well anything you want to try is worth trying -- i know lanux is nice enough to test and report.

my idea was not very well formed and i wouldn't be surprised if it wasn't feasible.  i guess what i was thinking is that the javascript engine might be operatung uin a restrictive mode due to security and would be refusing to create the ActiveXObject("Scripting.FileSystemObject").  But that the DLL would not be operating under such restrictions and would thus be able to create it and pass it to the js.

alternatively, maybe the local browser control used by FARR could create the object and pass it along?

or am i barking up the wrong tree?
Title: Re: Fscript error
Post by: lanux128 on May 27, 2009, 08:59 PM
i sort of found a fix for this problem. i found out that there is a runtime dll in the system folder, "scrrun.dll" and i just re-registering the dll on a hunch - regsvr32 C:\WINDOWS\system32\scrrun.dll and now it works (!) restarted Farr with no error messages popping up.

however as i mentioned to mouser in the chat-room. i am left wondering who/what could have unregistered the dll. there are other apps that use scrrun.dll and one of them could have misbehaved. perhaps there is a way to check this dependency on scrrun.dll.
Title: Re: Fscript error
Post by: ecaradec on May 28, 2009, 01:53 AM
very interesting. I already saw this issue once on my mother desktop. That was caused by the uninstallation of Norton because for monitoring Scripting.FileSystemObject it was registering its own version AND forgetting to put everything back on uninstall. Did you uninstall anything recently ?
Title: Re: Fscript error
Post by: mouser on May 28, 2009, 01:59 AM
ec, i've messaged you about another small bug in fsubscripts fscript.dll.
by the way we haven't said it enough recently but fscript is just plain amazing.. one of the coolest things i've ever seen and i love it.  :-*
Title: Re: Fscript error
Post by: ecaradec on May 28, 2009, 02:12 AM
It's a cool thing to hear again  :Thmbsup:
Title: Re: Fscript error
Post by: lanux128 on May 28, 2009, 08:23 PM
very interesting. I already saw this issue once on my mother desktop. That was caused by the uninstallation of Norton because for monitoring Scripting.FileSystemObject it was registering its own version AND forgetting to put everything back on uninstall. Did you uninstall anything recently ?

i see a pattern here.. this must have happened when i disabled the 'script scanning' option in Mcafee after an update.