We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Could not load file or assembly 'Aspose.Imaging' when loading nuget dynamically

My application is based on plugins that are dynamically loaded and instantiated. This works for all Aspose nugets except for the AsposeImaging and specifically with conversion to DICOM.

If I build a simple CLI application it works but if I load dynamically I get:

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Aspose.Imaging, Version=, Culture=neutral, PublicKeyToken=716fcc553a201e56'. The system cannot find the file
File name: 'Aspose.Imaging, Version=, Culture=neutral, PublicKeyToken=716fcc553a201e56'
   at AsposeImaging.Converter.Convert(String inputPath, String outputPath)
   at CallSite.Target(Closure , CallSite , Object , String , String )
   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at Program.Converter.Main(String[] args) in C:\Repos\Filestar\experimental\AsposeImaging\Program\Converter.cs:line 41

I have created the simplest possible solution to show you:

We’re able to reproduce you issue for conversion to dicom (At that conversion to png works fine),
The internal issue IMAGINGNET-5818 is created to address the issue in the nearest releases and attached to this ticket so you may see the status.