SSIS: FileLoadException for System.Runtime Version 6.0.0.0 in .NET Framework Project

101 Views Asked by At

I'm facing a FileLoadException when running my Script component in SSIS 2022, specifically related to loading the System.Runtime assembly version 6.0.0.0. The complete error message is as follows:

Could not load assembly l'assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

In the SSIS package, I have Azure blob methods to upload some attachments. All the Azure blob nugets are latest.

Environment:

  • Target: .NETframework 4.7
  • Development environment: Visual Studio 2022
  • Operating system: Windows 11

I found hundreds of suggestions, none helped me.

I added manually the assembly in app.config

<dependentAssembly> <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/> </dependentAssembly>, without result.

1

There are 1 best solutions below

0
sadzag On BEST ANSWER

Solution Steps:

  • Downgraded Azure.Blob NuGet to version 12.13.1, ensuring compatibility solely with .NET Standard.
  • Registered the necessary DLLs/NuGets in the Global Assembly Cache (GAC).

Troubleshooting Tips for SSIS or Console Applications:

  • App.config Check: Ensure it references the correct version of NuGet packages, especially if multiple versions have been installed.
  • NuGet Compatibility: Verify all installed NuGets for compatibility issues with the console application framework.