CLSID ComException errors in log files
search cancel

CLSID ComException errors in log files

book

Article ID: 176712

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

The following error messages could be seen in the logs:

Log File Name: C:\Program Files\Altiris\Notification Server\Logs\a.log
Priority: 1
Date: 9/2/2009 12:46:28 AM
Tick Count: 51761421
Host Name: MGTITSPUNE03
Process: aexsvc.exe (620)
Thread ID: 6716
Module: AltirisNativeHelper.dll
Source: Altiris.NS.ClientConfigManagement.ClientConfigManager.GetClientConfigXml
Description: Unable to get the config xml for the specified item (Item: All Desktop computers (excluding 'Package Servers'), Exception: Altiris.NS.Exceptions.AeXException: ClientSettingsItem - failed in 'GetConfigXml' ---> Altiris.NS.Exceptions.AeXException: ClientSettings - failed in 'ToXml' ---> System.Runtime.InteropServices.COMException (0x80040154): COM object with CLSID af9e4894-b636-11d2-8605-00104b74a9df is either not valid or not registered.
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(Type objectType)
   at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(Type serverType)
   at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj)
   at Altiris.NS.StandardItems.AgentSettings.ClientSettings.OnBuildClientConfigXml(Guid workstationGuid)
   --- End of inner exception stack trace ---
   at Altiris.NS.StandardItems.AgentSettings.ClientSettings.OnBuildClientConfigXml(Guid workstationGuid)
   at Altiris.NS.StandardItems.AgentSettings.ClientSettingsItem.OnBuildClientConfigXml2(Guid workstationGuid, XmlNode requestDocumentElement, XmlTextWriter itemXmlWriter)
   --- End of inner exception stack trace ---
   at Altiris.NS.StandardItems.AgentSettings.ClientSettingsItem.OnBuildClientConfigXml2(Guid workstationGuid, XmlNode requestDocumentElement, XmlTextWriter itemXmlWriter)
   at Altiris.NS.StandardItems.Policies.ClientConfigPolicy.Altiris.NS.ItemManagement.IItemClientConfig2.GetConfigXml(Guid resourceGuid, String requestXml)
   at Altiris.NS.ClientConfigManagement.ClientConfigManager.GetClientConfigXml(GuidCollection itemGuids, Hashtable itemConfigXml, Guid resourceGuid, String requestXml, String extraKey))


or


Log File Name: C:\Program Files\Altiris\Notification Server\Logs\a.log
Priority: 1
Date: 9/2/2009 12:46:28 AM
Tick Count: 51761421
Host Name: MGTITSPUNE03
Process: aexsvc.exe (620)
Thread ID: 6716
Module: AltirisNativeHelper.dll
Source:
Description: ClientSettingsItem - failed in 'GetConfigXml', error-Altiris.NS.Exceptions.AeXException: ClientSettings - failed in 'ToXml' ---> System.Runtime.InteropServices.COMException (0x80040154): COM object with CLSID af9e4894-b636-11d2-8605-00104b74a9df is either not valid or not registered.
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(Type objectType)
   at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(Type serverType)
   at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj)
   at Altiris.NS.StandardItems.AgentSettings.ClientSettings.OnBuildClientConfigXml(Guid workstationGuid)
   --- End of inner exception stack trace ---
   at Altiris.NS.StandardItems.AgentSettings.ClientSettings.OnBuildClientConfigXml(Guid workstationGuid)
   at Altiris.NS.StandardItems.AgentSettings.ClientSettingsItem.OnBuildClientConfigXml2(Guid workstationGuid, XmlNode requestDocumentElement, XmlTextWriter itemXmlWriter)


or


Log File Name: C:\Program Files\Altiris\Notification Server\Logs\a.log
Priority: 1
Date: 9/2/2009 12:46:14 AM
Tick Count: 51747468
Host Name: MGTITSPUNE03
Process: aexsvc.exe (620)
Thread ID: 6716
Module: AltirisNativeHelper.dll
Source: Altiris.NS.StandardItems.SoftwareDelivery.PackageManager.GetPackageSnapshotImpl
Description: Unable to get the snapshot for package Inventory Agent Package. Reason: System.Runtime.InteropServices.COMException (0x80040154): COM object with CLSID af9e4894-b636-11d2-8605-00104b74a9df is either not valid or not registered.
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(Type objectType)
   at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(Type serverType)
   at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj)
   at Altiris.NS.Utilities.AppIdentity.GetApplicationId(String& sUserName, String& sPassword, String& sDomain)
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageItem.GetEffectiveAccessCredentials(SourceType sourceType, String& domainName, String& userName, String& userPassword)
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageManager.GetPackageSnapshotImpl(Guid packageGuid, Int32 currentSnapshotVersion, Boolean forceRefresh)

or

Process: aexsvc.exe (6068)
Thread ID: 4548
Module: AltirisNativeHelper.dll
Source: Altiris.NS.ClientConfigManagement.AddressSiteCache.OnTimerCallback
Description: AddressSiteCache OnTimerCallback failed ( Unhandled exception.  Type=System.Runtime.InteropServices.COMException Msg=COM object with CLSID af9e4894-b636-11d2-8605-00104b74a9df is either not valid or not registered. Src=mscorlib
StackTrace=
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
   at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(Type objectType)
   at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(Type serverType)
   at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj)
   at Altiris.NS.Utilities.Impersonate.ImpersonateAsSvc()
   at Altiris.NS.ClientConfigManagement.AddressSiteCache.OnTimerCallback(Object state)
COM Exception errcode = -2147221164 )


You may see the following error appear on the App Identity Screen:

(Failed to get current settings. Error: Com object with CLSID {AF9E4894-B636-11D2-8605-00104B74A9DF} is either not valid or not registered.

Cause

The file AexUtility.dll was not registered properly.

Resolution

If you take the CLSID and search the registry for "af9e4894-b636-11d2-8605-00104b74a9df " since it is mentioned each time in the error listings, it is found that the CLSID af9e4894-b636-11d2-8605-00104b74a9df is actually the AexUtility.dll, so the following command can be used to re-register the file:

Regsvr32 D:\Program files\Altiris\Notification Server\Bin\AexUtility.dll.

The drive location to the Altiris installation path, in the above instance, was D:\Program files\Altiris so D was used for the path in the command line. It will need to be modified if Altiris is installed to a different drive path. 


An Alternate resolution was discovered as well:

1) Backup the web.config and coresettings.config files per KB 47782
2) Delete the AexSvc.exe and AexSvc.exe.config files from the <Install Dir>\Altiris\Notification Server\bin directory
3) Run a repair on NS Core via Add/Remove programs
4) Run a repair on NS Hotfix KBxxxxx via Add/Remove programs
5) Restore the web.config and coresttings.config files

At this point, the error messages should disappear.


Applies To
Notification Server 6.0 SP3 R6, R11

Attachments