What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Automation server can't create object

Automation server can't create object
Author: Message:
Jedimark
Full Member
***


Posts: 140
Reputation: 6
Joined: Apr 2002
O.P. Huh?  Automation server can't create object
Aghhh! This has been annoying me all day now....

quote:
Script is starting
Error: Automation server can't create object.
       Line: 10. Code: -2146827859.
Script has failed to start
Basically I have a DLL created in C#. When I was testing it myself I used RegAsm.exe /codebase test.DLL to register the DLL and everything was working fine.

Anyway, so I unregistered the DLL and packaged up my Script and included the following lines in my XML file:
quote:
    <DotNetFiles>   
        <FileName>MLP.dll</FileName>
    </DotNetFiles>
But... now when I load up WLM I get the above error message.

If I remove the <DotNetFiles> etc code and manually do RegAsm.exe I'm fine...

So my question is... does anyone know what's going on here?
The line of JS that throws the error up in the first place is:
quote:
var myInstanceVar=new ActiveXObject("MLP.Main");
Regards,
- Mark
08-13-2006 05:14 PM
Profile PM Find Quote Report
mickael9
Full Member
***


Posts: 117
Reputation: 3
32 / Male / Flag
Joined: Jul 2005
RE: Automation server can't create object
Are you using C# 2.0 ?
08-13-2006 06:38 PM
Profile PM Web Find Quote Report
Jedimark
Full Member
***


Posts: 140
Reputation: 6
Joined: Apr 2002
O.P. RE: Automation server can't create object
Yes. Does that make much difference?
08-13-2006 06:42 PM
Profile PM Find Quote Report
mickael9
Full Member
***


Posts: 117
Reputation: 3
32 / Male / Flag
Joined: Jul 2005
RE: Automation server can't create object
I think MsgPlus! Live use the 1.x regasm :(
08-13-2006 07:11 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Automation server can't create object
quote:
Originally posted by mickael9
I think MsgPlus! Live use the 1.x regasm :(
If that is the case include your version of RegAsm and then register the file on initialize thats your best bet.
08-13-2006 07:39 PM
Profile E-Mail PM Find Quote Report
Jedimark
Full Member
***


Posts: 140
Reputation: 6
Joined: Apr 2002
O.P. Happy  RE: Automation server can't create object
Thanks for the tips guys. Patchou, can you confirm this is the case?
Maybe for a future release you should check for a users highest version of .NET and use the latest RegAsm utility?

For now, I would be very greatful if anyone with .NET 2.0 could do a little test for me and install my Script and let me know if there are any problems.

It's my old Music Logger plug-in which enables you to monitor the songs that you and your contacts play on WLM. You can then view a contacts song "history" and even export the history tables to a HTML file.

The link is:
http://freespace.virgin.net/mark.rylander/MLP-3.0.exe

I'd be most interested to know:
a) If the thing actually loads!
b) If the command /XMLP opens the interface
c) The logging process works
d) If you get a "new version available" message when you start WLM
.. and any other bugs/suggestions/comments etc!

Thanks very much, (Y)
- Mark

This post was edited on 08-13-2006 at 09:00 PM by Jedimark.
08-13-2006 07:50 PM
Profile PM Find Quote Report
Jedimark
Full Member
***


Posts: 140
Reputation: 6
Joined: Apr 2002
O.P. RE: Automation server can't create object
Has anyone tested it at all? It would be much appreciated :)
08-14-2006 03:40 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On