RE: Problems with COM Registration Programmatically
Hi Shawn M.,
I have never done this programmatically but may be you can try registering
assembly using RegistrationServices class and then spawning the process "regsvcs"
to add it to component services.
More information about regsvcs at,
http://msdn.microsoft.com/en-us/library/04za0hca(VS.80).aspx
You can alos try using COMAdmin APIs to add the application programmatically
(as I said, I have not done that, But I believe it should help!)
More info about COMAdmin at,
http://msdn.microsoft.com/en-us/library/ms683573.aspx
Jigar Mehta
> I forgot to mention, using RegAsm with the /tlb switch works to
> register the component. Then creating the COM+ App by hand and
> dragging the .tlb in works. So I don't believe there is anything wrong
> with my COM component.
>
> Looking at the disassembly, regasm uses the RegistrationServices
> class. I tried using that class in code, and it worked perfectly.
> Unfortunately, needing to also create a COM+ application makes using
> this class a problem.
>
date: Sun, 1 Jun 2008 19:42:36 +0000 (UTC)
author: Jigar Mehta