Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sun, 1 Jun 2008 19:42:36 +0000 (UTC),    group: microsoft.public.dotnet.framework.component_services        back       


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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us