search cancel

Failed to configure: ...\Program Files\Altiris\Reports\Config\Reports_RU.config. An unexpected exception has occurred during CreateInstance. Could not load file or assembly.

book

Article ID: 174221

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

While trying to upgrade to ITMS 8.1 RU7, during the process of configure Reports.config, it failed with the following entries:

Entry 1:
Symantec.Installation.ConfigureNS.StartCurrentTask: starting configuration task Configure NS Reports 8.1 RU7....
-----------------------------------------------------------------------------------------------------

Entry 2:
Failed to import the item from the file: ...\Program Files\Altiris\Reports\Config\Reports_RU.config

Item Import exception : 8b5afd3b-a6fc-4eae-bc7c-e558d4d173b3 = Altiris.NS.Reports.ReportsInstallation (a2d4bcae-2c0d-4288-a51b-5ff99f645d49)
[Altiris.NS.Exceptions.AeXItemImportException @ Altiris.NS]
...
An unexpected exception has occured during CreateInstance.
Assembly: Altiris.NS.Reports, Version=7.1.0.0, Culture=neutral, PublicKeyToken=cf9dd343b3008b86
...
Could not load file or assembly 'Altiris.NS.Reports, Version=7.1.0.0, Culture=neutral, PublicKeyToken=cf9dd343b3008b86' or one of its dependencies. The system cannot find the file specified.
[System.IO.FileNotFoundException @ mscorlib]

-----------------------------------------------------------------------------------------------------

Entry 3:
Failed to configure: ...\Program Files\Altiris\Reports\Config\Reports_RU.config

Item Import exception : 8b5afd3b-a6fc-4eae-bc7c-e558d4d173b3 = Altiris.NS.Reports.ReportsInstallation (a2d4bcae-2c0d-4288-a51b-5ff99f645d49)
....
An unexpected exception has occured during CreateInstance.
Assembly: Altiris.NS.Reports, Version=7.1.0.0, Culture=neutral, PublicKeyToken=cf9dd343b3008b86
....

Could not load file or assembly 'Altiris.NS.Reports, Version=7.1.0.0, Culture=neutral, PublicKeyToken=cf9dd343b3008b86' or one of its dependencies. The system cannot find the file specified.
[System.IO.FileNotFoundException @ mscorlib]

 

Entry 1:
Symantec.Installation.ConfigureNS.StartCurrentTask: starting configuration task Configure NS Reports 8.1 RU7....
-----------------------------------------------------------------------------------------------------
Date: 4/1/2019 9:34:20 PM, Tick Count: 1901250 (00:31:41.2500000), Size: 398 B
Process: SymantecInstallationManager (10520), Thread ID: 3, Module: SymantecInstallationManager.exe
Priority: 4, Source: Symantec.Installation.ConfigureNS.StartCurrentTask

Entry 2:
Failed to import the item from the file:
...\Program Files\Altiris\Reports\Config\Reports_RU.config

Item Import exception : 8b5afd3b-a6fc-4eae-bc7c-e558d4d173b3 = Altiris.NS.Reports.ReportsInstallation (a2d4bcae-2c0d-4288-a51b-5ff99f645d49)
[Altiris.NS.Exceptions.AeXItemImportException @ Altiris.NS]
at Altiris.NS.ItemManagement.Item.ImportItem(XmlNode itemNode, Boolean needResult, ImportResult& result)
at Altiris.NS.ItemManagement.Item.ImportItemFromDocument(XmlDocument doc, String filePath)
at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String configFile, Boolean ownsProgressContext, SerializationMode serializationMode)

An unexpected exception has occured during CreateInstance.
Assembly: Altiris.NS.Reports, Version=7.1.0.0, Culture=neutral, PublicKeyToken=cf9dd343b3008b86
Type: Altiris.NS.Reports.ReportsInstallation
[Altiris.NS.AeXClassActivatorException @ Altiris.NS]
at Altiris.NS.ClassActivator.CreateInstance(String assembly, String type, Object[] parameters)
at Altiris.NS.ItemManagement.Item.CreateInstance(String strClassAssembly, String strClassType, Object[] parameters, Guid itemGuid)
at Altiris.NS.ItemManagement.Item.ImportItem(XmlNode itemNode, Boolean needResult, ImportResult& result)

Could not load file or assembly 'Altiris.NS.Reports, Version=7.1.0.0, Culture=neutral, PublicKeyToken=cf9dd343b3008b86' or one of its dependencies. The system cannot find the file specified.
[System.IO.FileNotFoundException @ mscorlib]

Entry 3:
Failed to configure:
...\Program Files\Altiris\Reports\Config\Reports_RU.config

Item Import exception : 8b5afd3b-a6fc-4eae-bc7c-e558d4d173b3 = Altiris.NS.Reports.ReportsInstallation (a2d4bcae-2c0d-4288-a51b-5ff99f645d49)
[Altiris.NS.Exceptions.AeXItemImportException @ Altiris.NS]
at Altiris.NS.ItemManagement.Item.ImportItem(XmlNode itemNode, Boolean needResult, ImportResult& result)
at Altiris.NS.ItemManagement.Item.ImportItemFromDocument(XmlDocument doc, String filePath)
at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String configFile, Boolean ownsProgressContext, SerializationMode serializationMode)
at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatchInternal()

An unexpected exception has occured during CreateInstance.
Assembly: Altiris.NS.Reports, Version=7.1.0.0, Culture=neutral, PublicKeyToken=cf9dd343b3008b86
Type: Altiris.NS.Reports.ReportsInstallation
[Altiris.NS.AeXClassActivatorException @ Altiris.NS]
at Altiris.NS.ClassActivator.CreateInstance(String assembly, String type, Object[] parameters)
at Altiris.NS.ItemManagement.Item.CreateInstance(String strClassAssembly, String strClassType, Object[] parameters, Guid itemGuid)
at Altiris.NS.ItemManagement.Item.ImportItem(XmlNode itemNode, Boolean needResult, ImportResult& result)

Could not load file or assembly 'Altiris.NS.Reports, Version=7.1.0.0, Culture=neutral, PublicKeyToken=cf9dd343b3008b86' or one of its dependencies. The system cannot find the file specified.
[System.IO.FileNotFoundException @ mscorlib]

 

Cause

Bad assembly references

Environment

ITMS 8.x

Resolution

Since the error messages were referring to:
assembly 'Altiris.NS.Reports, Version=7.1.0.0, Culture=neutral, PublicKeyToken=cf9dd343b3008b86'

Try the following:

  1. Create a dummy folder called "v4.0_7.1.0.0__cf9dd343b3008b86" (just copy the same folder already present (in this case it was called "v4.0_8.1.4528.0__cf9dd343b3008b86" and rename the copy) under "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Altiris.NS.Reports")
    OR
    grab the missing assembly from another server with the same version
    OR
    run the MSI related to the dll manually to get the missing dll. 
    msiexec /i "C:\Program Files\Altiris\Symantec Installation Manager\Installs\Altiris\altiris_reports_x_x_x64.msi" skipaim=1
  2. Stop IIS (iisreset /stop) and Altiris Services
  3. Go to "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\" and delete the "Altiris" folders
  4. Restart IIS (iisreset /start)
  5. Run a reconfigure on the installed product through SIM.

 

Note: 
In some instances, running the MSI associated with the missing assembly works in getting the missing MSI but UAC (User Access Control) may be blocking getting it in place. You can disable UAC in the registry, reboot, and run the upgrade process one more time.