Shoutbox

Automation server can't create object - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Automation server can't create object (/showthread.php?tid=64874)

Automation server can't create object by Jedimark on 08-13-2006 at 05:14 PM

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
RE: Automation server can't create object by mickael9 on 08-13-2006 at 06:38 PM

Are you using C# 2.0 ?


RE: Automation server can't create object by Jedimark on 08-13-2006 at 06:42 PM

Yes. Does that make much difference?


RE: Automation server can't create object by mickael9 on 08-13-2006 at 07:11 PM

I think MsgPlus! Live use the 1.x regasm :(


RE: Automation server can't create object by matty on 08-13-2006 at 07:39 PM

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.
RE: Automation server can't create object by Jedimark on 08-13-2006 at 07:50 PM

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


RE: Automation server can't create object by Jedimark on 08-14-2006 at 03:40 PM

Has anyone tested it at all? It would be much appreciated :)