Regsvcs issue

M

Mccutjm

Hi all. I'm trying to install a .NET component into COM+ using
Regsvcs. I get the following error when attempting to do so: The
following installation error occurred:
1: Could not install type library XXX.tlb' into application YYY'.
XXX.tlb: The object is already registered
XXX: The object is already registered

The only problem is that the .tlb is not registered. I have tried to
clean the registry of all entries and reinstall and that didn't work.
I also used regasm to unregister the types and then tried to reinstall
and that didn't work. Does anyone have a recommendation on how to get
this fixed. I'm completely out of ideas.

Thanks,
Josh
 
B

Brian Newtz

Have you checked the component services snap-in to make sure the com+
components are truly uninstalled?

What arguments to regsvcs are you using to register/unregister the
component?
 
M

Mccutjm

Thanks for the reply.

Yes, I am looking at the component services manager to confirm that it
is uninstalled.

I use the following syntax when uninstalling: regsvcs /u XXX.dll (and
I get the following error: Could not find application 'name=XXX').

I use the following syntax when installing: regsvcs XXX.dll (and I get
the error mentioned in my first post)

Thanks,
Josh
 
B

Brian Newtz

Hmmm, and you said you did clean out your registry?

You'd have to delete two keys, both under HKCR. The first would be the GUID
of the component, and the second would be the name of the component.

You might want to use OLE View and check the type libraries part of the
treeview to see if you can still find your component (which if it's
unregistered completely then you shouldn't).

As a last resort, I would suggest specifying your own, different GUID
attribute against your assembly, and then try using regsvcs with the
/appname switch to register it under a different name.

-Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top