Could not load file or assembly 'Altiris.Agent.Unix.Plugins.Mac.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
search cancel

Could not load file or assembly 'Altiris.Agent.Unix.Plugins.Mac.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

book

Article ID: 262094

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

The customer was trying to move his database to a new SQL Server. During the database configuration process, SIM (Symantec Installation Manager) failed. During the reconfiguration, the customer hit a critical failure when SIM was configuring ULM.

The SIM logs showed the following messages:

Entry 1:

Configuring task 29 of 82: Configure Symantec Management Agent Install - UNIX, Linux and Mac...
-----------------------------------------------------------------------------------------------------
Date: 3/11/2023 9:02:48 PM, Tick Count: 426104031 (4.22:21:44.0310000), Size: 384 B
Process: SymantecInstallationManager (22444), Thread ID: 33, Module: SymantecInstallationManager.exe
Priority: 4, Source: Symantec.Installation.Automation.Output.ReportInfo

Entry 2:

Configuring product: C:\Program Files\Altiris\UNIX Agent\Config\UnixAgent.config
-----------------------------------------------------------------------------------------------------
Date: 3/11/2023 9:02:48 PM, Tick Count: 426104046 (4.22:21:44.0460000), Size: 354 B
Process: AeXSvc (13404), Thread ID: 48, Module: Altiris.NS.dll
Priority: 4, Source: Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal

Entry 3:

Starting configuration for product 'Symantec Management Agent Install - UNIX, Linux and Mac' (33b4ff4d-a382-44f4-9357-a887dc425403), version 8.6.4031.0.
-----------------------------------------------------------------------------------------------------
Date: 3/11/2023 9:02:48 PM, Tick Count: 426104234 (4.22:21:44.2340000), Size: 368 B
Process: AeXSvc (13404), Thread ID: 48, Module: AeXSVC.exe
Priority: 4, Source: ProductInstallation

Entry 4:

Plugin loading failed.

Could not load file or assembly 'file:///C:\Program Files\Altiris\UNIX Agent\Plugins\Altiris.Agent.Unix.Plugins.Mac.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
   [System.IO.FileLoadException @ mscorlib]
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at Altiris.Agent.Unix.PlatformDetection.PlatformManager.PlatformsList()

An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   [System.NotSupportedException @ ]

Exception logged from: 
   at Altiris.Agent.Unix.PlatformDetection.PlatformManager.PlatformsList()
   at Altiris.Agent.Unix.PlatformDetection.PlatformManager.Families()
   at Altiris.Agent.Unix.PackageGenerators.BootstrapGenerator.RegenerateBootstrapFiles(String)
   at Altiris.Agent.Unix.UnixAltirisAgentInstallation.OnInstallProduct(System.Xml.XmlNode)
   at Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String, Boolean, Altiris.NS.Serialization.SerializationMode)
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatchInternal()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatch()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at System.Threading.ThreadHelper.ThreadStart()

-----------------------------------------------------------------------------------------------------
Date: 3/11/2023 9:02:48 PM, Tick Count: 426104265 (4.22:21:44.2650000), Size: 3.21 KB
Process: AeXSvc (13404), Thread ID: 48, Module: Altiris.Agent.Unix.dll
Priority: 1, Source: Altiris.Agent.Unix.PlatformDetection.PlatformManager.PlatformsList

Entry 5:

Failed to install product.

Object reference not set to an instance of an object.
   [System.NullReferenceException @ Altiris.Agent.Unix]
   at Altiris.Agent.Unix.PackageGenerators.MacInstallerGenerator.CreateMacInstallationArchive(String sDefaultInstallXml)
   at Altiris.Agent.Unix.UnixAltirisAgentInstallation.OnInstallProduct(XmlNode installationNode)
   at Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct()

Exception logged from: 
   at Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String, Boolean, Altiris.NS.Serialization.SerializationMode)
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatchInternal()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatch()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at System.Threading.ThreadHelper.ThreadStart()

-----------------------------------------------------------------------------------------------------
Date: 3/11/2023 9:02:48 PM, Tick Count: 426104390 (4.22:21:44.3900000), Size: 1.64 KB
Process: AeXSvc (13404), Thread ID: 48, Module: Altiris.NS.StandardItems.dll
Priority: 1, Source: Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct

Entry 6:

Failed to install the product from the file: C:\Program Files\Altiris\UNIX Agent\Config\UnixAgent.config

Object reference not set to an instance of an object.
   [System.NullReferenceException @ Altiris.Agent.Unix]
   at Altiris.Agent.Unix.PackageGenerators.MacInstallerGenerator.CreateMacInstallationArchive(String sDefaultInstallXml)
   at Altiris.Agent.Unix.UnixAltirisAgentInstallation.OnInstallProduct(XmlNode installationNode)
   at Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String configFile, Boolean ownsProgressContext, SerializationMode serializationMode)

Exception logged from: 
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String, Boolean, Altiris.NS.Serialization.SerializationMode)
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatchInternal()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatch()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at System.Threading.ThreadHelper.ThreadStart()

-----------------------------------------------------------------------------------------------------
Date: 3/11/2023 9:02:48 PM, Tick Count: 426104609 (4.22:21:44.6090000), Size: 1.80 KB
Process: AeXSvc (13404), Thread ID: 48, Module: Altiris.NS.dll
Priority: 1, Source: Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal

Entry 7:

Failed to configure: C:\Program Files\Altiris\UNIX Agent\Config\UnixAgent.config

Object reference not set to an instance of an object.
   [System.NullReferenceException @ Altiris.Agent.Unix]
   at Altiris.Agent.Unix.PackageGenerators.MacInstallerGenerator.CreateMacInstallationArchive(String sDefaultInstallXml)
   at Altiris.Agent.Unix.UnixAltirisAgentInstallation.OnInstallProduct(XmlNode installationNode)
   at Altiris.NS.StandardItems.Product.ProductInstallation.InstallProduct()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductInternal(String configFile, Boolean ownsProgressContext, SerializationMode serializationMode)
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatchInternal()

Exception logged from: 
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatchInternal()
   at Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatch()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at System.Threading.ThreadHelper.ThreadStart()

-----------------------------------------------------------------------------------------------------
Date: 3/11/2023 9:02:48 PM, Tick Count: 426104609 (4.22:21:44.6090000), Size: 1.73 KB
Process: AeXSvc (13404), Thread ID: 48, Module: Altiris.NS.dll
Priority: 1, Source: Altiris.NS.Installation.ProductConfigurationWorker.ConfigureProductBatchInternal

Entry 8:

Error during Upgrade, status: Error, ex: Symantec.Installation.UpgradeConfigTaskException: Product failed to install. See log for details.
-----------------------------------------------------------------------------------------------------
Date: 3/11/2023 9:02:51 PM, Tick Count: 426107078 (4.22:21:47.0780000), Size: 450 B
Process: SymantecInstallationManager (22444), Thread ID: 29, Module: SymantecInstallationManager.exe
Priority: 1, Source: Symantec.Installation.UpgradeConfigTask+<>c.<StartImpl>b__2_0

Environment

ITMS 8.6 RU3
Post-RU3 Pointfixes installed

Cause

The file "Altiris.Agent.Unix.Plugins.Mac.dll" was set to blocked in the file system.

Resolution

  1. Go to <install drive>:\Program Files\Altiris\UNIX Agent\Plugins\Altiris.Agent.Unix.Plugins.Mac.dll


  2. Check if the Altiris.Agent.Unix.Plugins.Mac.dll is not "blocked". Most likely it was blocked by Windows upon copy.

    Right-click->Properties->General tab->Unblock in attributes.


Note:

If this "Altiris.Agent.Unix.Plugins.Mac.dll" is one that got recently updated after installing one of our ULM Pointfixes, if the point fix was downloaded from our KB system and extracted by Windows native extractor, then "block" is inherited to all extracted files. If it was used by some other extractor like 7-zip for example, then extracted files are unblocked automatically.

Also, this Power Shell command helped to unblock all the files in PF's directory:

Get-ChildItem *.* -Recurse | Unblock-File

After that, you should re-run the Pointfix for ULM in order to get the files from an unblocked state to the proper places. 


Note: 

Another trick to try is to rename the dll file from "Altiris.Agent.Unix.Plugins.Mac.dll" to "Altiris.Agent.Unix.Plugins.Mac.dll_old" and save it and then rename it back to "Altiris.Agent.Unix.Plugins.Mac.dll"

Additional Information

Cannot generate a new CEM Installation Package for Mac OS clients: Failed to generate the package. Object reference not set to an instance of an object (KB 219691)