regsvcs error - Unknown COM+ 1.0 catalog error - 1. invalid class string

  • Thread starter Thread starter Andy Gray
  • Start date Start date
A

Andy Gray

I've got a .net assembly that I need to register with COM+. Use regsvcs and
get the following output :-

Microsoft (R) .NET Framework Services Installation Utility Version
1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

An unknown COM+ 1.0 catalog error occurred:
1: Invalid class string



At the same time, an event log error is written

Unable to create System.EnterpriseServices.RegistrationHelperTx (see
exception below). EnterpriseService was not correctly installed. Please
correct the problem and run 'regasm System.EnterpriseServices.dll' again to
install System.EnterpriseServices.

Exception:
'System.EnterpriseServices.ServicedComponentException: The
ServicedComponent being invoked is not correctly configured (Use RegSvcs to
re-register).
at
System.EnterpriseServices.ServicedComponentProxy.FilterConstructors()
at
System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Typ
e serverType)
at
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Typ
e serverType, Object[] props, Boolean bNewObj)
at
System.EnterpriseServices.RegistrationHelper.TryTransactedInstall(Registrati
onConfig regConfig)'



I tried to run the regasm command on System.EnterpriseServices.dll. Regasm
returned "Types registered successfully" but the following error appeared in
the event log :-

System.EnterpriseServices failed to install. Please fix the problem (see
exception below) and run 'regasm System.EnterpriseServices.dll' again to
install System.EnterpriseServices.

Exception:
'System.Runtime.InteropServices.COMException (0x800401F3): Invalid class
string
at System.EnterpriseServices.Admin.ICatalogCollection.SaveChanges()
at
System.EnterpriseServices.RegistrationHelperTx.InstallUtilityApplication(Typ
e t)'


Now from the fact that this registers correctly on other similar machines,
there is a problem with either COM+ or the .Net install - probably COM+ as
it involves interop and invalid class strings. Any suggestion of how to fix
this without resorting to a machine rebuild?

Thanks
Andy
 
Back
Top