ILMerge / Dependent Assemblies in Plugin – System.IO.FileNotFoundException: Could not load file or assembly ‘System.Memory.Data’ – Dynamics 365 / Dataverse


Recently, a plugin using Azure.Storage.Blobs and Azure.Storage.Common libraries started throwing a System.TypeInitializationException with a System.IO.FileNotFoundException. The issue was caused by a platform update that prevented the loading of the "System.Memory.Data" assembly on the plugin server. The solution was to include the System.Memory.Data assembly along with the Azure assemblies. Another option is to use the Plugin Package to package the dependent assemblies.


Article 10m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time