The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. Click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Azure connector - Could not load file or assembly 'Azure.Core, Version=1.14.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified.

JulesB
By
Level 4

Hi there,

I'm currently facing the following issue after I implemented the Azure Connector based on the documentation. I'm running 2021R1 and I have all hotfixes installed. I already installed the Azure.Core version 1.14 package manually, but it didn't solve the problem. I already tested the PS commands manually and I can connect to Azure to fetch the data needed.

2021-10-12 20:00:26,608 [INFO ] Running Compliance import with "-us false -processremotepackages true -importtype Readers -s AzureVMsWSATenant" parameters
2021-10-12 20:00:30,608 [INFO ] Reading 'ActiveDirectory' data from 'Azure Virtual Machines WSA Tenant' (ver 1.0) data source
2021-10-12 20:00:30,608 [INFO ] Reading data for 'ActiveDirectory' successfully processed in 0 seconds.
2021-10-12 20:00:30,686 [INFO ] Released application lock Reader_fe56bd38-9de7-4510-9977-611d0fe31890_ActiveDirectory_ALL
2021-10-12 20:00:30,686 [INFO ] Reading 'Computer' data from 'Azure Virtual Machines WSA Tenant' (ver 1.0) data source
2021-10-12 20:00:30,686 [INFO ] Reading data for 'Computer' successfully processed in 0 seconds.
2021-10-12 20:00:30,686 [INFO ] Released application lock Reader_fe56bd38-9de7-4510-9977-611d0fe31890_Computer_ALL
2021-10-12 20:00:30,686 [INFO ] Reading 'VirtualMachine' data from 'Azure Virtual Machines WSA Tenant' (ver 1.0) data source
2021-10-12 20:00:30,686 [INFO ] Get Azure VM Instances (Transfer data from source 'Azure Virtual Machines WSA Tenant' to FNMP)
2021-10-12 20:00:30,920 [INFO ] #ObjectModel_CloudServiceInstance_GetAzureVMInstances
2021-10-12 20:00:30,951 [WARN ] Warning! The maximum key length is 900 bytes. The index 'CK_#ObjectModel_CloudServiceInstance_GetAzureVMInstances' has maximum length of 1824 bytes. For some combination of large values, the insert/update operation will fail.
2021-10-12 20:00:47,092 [INFO ] Failed to execute Reader 'Get Azure VM Instances' from file C:\ProgramData\Flexera Software\Compliance\ImportProcedures\Inventory\Reader\microsoft azure\Instance.xml, at step line 1
Error: Please review the error message and correct the issue, then try again:
Could not load file or assembly 'Azure.Core, Version=1.14.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Azure.Core, Version=1.14.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified.
2021-10-12 20:00:47,092 [INFO ] All retries have been attempted for Reader 'Get Azure VM Instances'
2021-10-12 20:00:47,092 [INFO ] Completed with error in 16 seconds.
2021-10-12 20:00:47,092 [INFO ] Released application lock Reader_fe56bd38-9de7-4510-9977-611d0fe31890_VirtualMachine_ALL
2021-10-12 20:00:47,092 [ERROR] System.Management.Automation.RuntimeException: Please review the error message and correct the issue, then try again:
Could not load file or assembly 'Azure.Core, Version=1.14.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Azure.Core, Version=1.14.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified.
---> System.Management.Automation.RuntimeException: Please review the error message and correct the issue, then try again:
Could not load file or assembly 'Azure.Core, Version=1.14.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Azure.Core, Version=1.14.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified.
--- End of inner exception stack trace ---
at ManageSoft.Compliance.Importer.Logic.PowerShellDataReader.Read()
at System.Data.SqlClient.SqlBulkCopy.ReadFromRowSourceAsync(CancellationToken cts)
at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalAsync(CancellationToken ctoken)
at System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServerAsync(Int32 columnCount, CancellationToken ctoken)
at System.Data.SqlClient.SqlBulkCopy.WriteToServer(IDataReader reader)
at ManageSoft.Compliance.Importer.Logic.DatabaseConnection.LoadData(IDataReader p_DataReader, String p_TableName, Int32 p_BatchSize, Boolean p_ExplicitColumns)
at ManageSoft.Compliance.Importer.Logic.XML.SourceToTarget.ExecuteReader(IExecutionContext context, ISourceConnection sourceConn, IDataReader reader)
at ManageSoft.Compliance.Importer.Logic.PublicObjectModel.SourceToImportedTableObject.ExecuteReader(IValidatingDataReader reader, SourceToObject STOObject)
at ManageSoft.Compliance.Importer.Logic.PublicObjectModel.SourceToObjectImplementation.ExecuteImplementationSQL(IExecutionContext context, SourceToObject sourceToObject)
at ManageSoft.Compliance.Importer.Logic.XML.Reader.Execute(IExecutionContext context)
at ManageSoft.Compliance.Importer.Logic.ActionExecuter.ReaderExecuter.ExecuteSingleReader(Reader reader, Int32 procedureOrder, Version sourceDatabaseVersion)
at ManageSoft.Compliance.Importer.Logic.ActionExecuter.ReaderExecuter.Execute()
at ManageSoft.Compliance.Importer.Logic.ComplianceImporter.ProcessExecution(ComplianceReader p_ComplianceReader, Tenant p_Tenant, IExecutionContext p_Context)

During my Google research I found a couple of articles stating that I might have to add the following line to a .NET config file, but I couldn't find that file:

<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>

Could not load file or assembly 'Azure.Core, Version=1.0.2.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified. · Issue #16095 · Azure/azure-sdk-for-net · GitHub

Does anyone got this error as well and found a solution?

Thx

Jules

(23) Replies

dbeckner
By Level 10 Champion
Level 10 Champion

Any resolution to this?

Hi, @dbeckner I was given a hotfix by support with changes made to ComplianceReader.exe.config. As it is not publicized fix yet to my knowledge, please create support case and refer to case #02533477.

BR, Antti

dbeckner
By Level 10 Champion
Level 10 Champion

Thank you! I have reached out to Flexera about this.