Page 1 of 1

Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 1:20 pm
by King Harold
Basically the title says it all..
What's going on?

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 1:29 pm
by benryves
Which OS are you using? What software are you using? Have you installed whatever software is responsible for the COM object you're trying to sign apps with (I assume that's TI Flash Debugger).

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 1:40 pm
by King Harold
I reinstalled the Flash Debugger just to be sure but it still doesn't work..
And I'm using LateNite to attempt to build the app (wappsign looks correctly setup, with the proper paths and all)

edit: oh and, running XP of course

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 1:43 pm
by benryves
Normal XP or 64-bit XP?

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 1:45 pm
by King Harold
Hm 64bit, would that break it? I suppose it could..
edit: would it be fixed if I ran LateNite in 32bit mode?
edit2: no that didn't work.. :(

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 2:01 pm
by benryves
It's a .NET app set to run on "any CPU", which wouldn't have any problems if it was a pure .NET app (it would run as 32-bit on 32-bit Windows, 64-bit on 64-bit Windows). However, it relies on a native COM object (32-bit), which can't be used when running under 64-bit Windows.

The correct solution would be to recompile all the .NET apps as requiring x86, not "any CPU". However, to fix it yourself, this post should help in the meantime.

Sorry for any inconvenience!

Edit: Bear in mind that Latenite runs Brass, so you'll need to "fix" Brass, not Latenite.

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 2:02 pm
by King Harold
Oh I already did it the "hard" way (CFF Explorer, manually edited the flags)
But it didn't help - it's running as 32bit process but I still get the error

edit: doh didn't think of that, will fix brass now..

edit2: Ok we have a win! :)
thanks

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 2:11 pm
by benryves
I'll insert my recommendation for the Wabbit series of tools here in the meantime. ;-)

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 2:18 pm
by King Harold
How would I set that up with latenite/brass? Just add it in the build file?

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Tue 07 Jul, 2009 2:44 pm
by benryves
As in, use them instead of Latenite/Brass. :P

Re: Can not sign apps - retrieving COM class factory failed.

Posted: Thu 09 Jul, 2009 2:32 am
by Spencer
Can you call an external build step? Just have Brass generate a binary file, and sign it with wabbitsign using
Command Prompt wrote:wabbitsign program.bin program.8xk
Wabbitsign: http://www.revsoft.org/wabbitsign.zip