Sub-component COM+ raised an exception while processing the OC_COMPLETE_INSTALLATION

While troubleshooting a VMware conversion of XP Physical to VM I saw in the server-side logs this error:

Task failed: P2VError SNAPSHOT_FAILURE(-1)

The client-side logs showed:

Shapshot creation failed. driver=vss
Creating snapshot using vsnap
Vsnap does not have admin rights
Snapshotting \\?\Volume{ff8f85c0-aed2-11dc-ab9f-806d6172696f} using stcbasic.sys
stcbasic.sys not installed or snapshot creation failed. err=2

Event log on client-side shows Event ID 8193 and 5013:

Event Type: Error
Event Source: VSS
Event Category: None
Event ID: 8193
Description:
Volume Shadow Copy Service error: Unexpected error calling routine IEventSystem::Query. hr = 0x80040155.

Event Type: Error
Event Source: VSS
Event Category: None
Event ID: 5013
Description:
Volume Shadow Copy Service error: Shadow Copy writer Microsoft Writer (Bootable State) called routine CVssWriterShim::Subscribe which failed with status 0x8000ffff (converted to 0x800423f4).

Followed by COM+ Event ID 4822, 778, 4689

Event Type: Error
Event Source: COM+
Event Category: (98)
Event ID: 4822
Description:
A condition has occurred that indicates this COM+ application is in an unstable state or is not functioning correctly. Assertion Failure: SUCCEEDED(hr)

Server Application ID: {02D4B3F1-FD88-11D1-960D-00805FC79235}
Server Application Instance ID:
{858374CC-C7B1-4CB3-9EB1-FD3F49A93002}
Server Application Name: System Application
The serious nature of this error has caused the process to terminate.
Error Code = 0x8000ffff : Catastrophic failure
COM+ Services Internals Information:
File: f:\xpsp3\com\com1x\src\comsvcs\tracker\trksvr\trksvrimpl.cpp, Line: 3000
Comsvcs.dll file version: ENU 2001.12.4414.702 shp
 

Event Type: Information
Event Source: COM+
Event Category: (117)
Event ID: 778
Description:
Application image dump failed.
Server Application ID: {02D4B3F1-FD88-11D1-960D-00805FC79235}
Server Application Instance ID:
{858374CC-C7B1-4CB3-9EB1-FD3F49A93002}
Server Application Name: System Application
Error Code = 0x80004005 : Unspecified error
COM+ Services Internals Information:
File: f:\xpsp3\com\com1x\src\shared\util\svcerr.cpp, Line: 1259
Comsvcs.dll file version: ENU 2001.12.4414.702 shp
 

Event Type: Error
Event Source: COM+
Event Category: Unknown
Event ID: 4689
Description:
The run-time environment has detected an inconsistency in its internal state. This indicates a potential instability in the process that could be caused by the custom components running in the COM+ application, the components they make use of, or other factors. Error in f:\xpsp3\com\com1x\src\comsvcs\package\cpackage.cpp(1184), hr = 80080005: InitEventCollector failed

And then finally another VSS Event ID 12292
 

Event Type: Error
Event Source: VSS
Event Category: None
Event ID: 12292
Description:
Volume Shadow Copy Service error: Error creating the Shadow Copy Provider COM class with CLSID {65ee1dba-8ff4-4a58-ac1c-3470ee2f376a} [0x80080005].
 

 

When I tried to look at the component services .msc, it crashed and gave more errors, so I definitely had a problem with COM+.  Reinstalling wasn't easy, or well documented.  Here's the trick:

 

Reinstall COM+ gives error similar to right:Sub-component COM+ raised an exception while processing the OC_COMPLETE_INSTALLATION setup message. 
d:\nt\com\com1x\src\complussetup\comsetup\ccompluscore.cpp (line 565) 
Error Code = 0x80040155 
Interface not registered
The COM+ event classes could not be registered.
To fix you must reinstall COM+ using KB315296: http://support.microsoft.com/kb/315296

After the failure, you need to regsvr32 ole32.dll and oleaut32.dll and try COM+ reinstall again.

 

If you found this document useful, please let me know - drop me a quick email.