We have code in our app that tries to load all referenced assemblies. This code fails after integrating “Aspose.PDF":
System.IO.FileNotFoundException: Could not load file or assembly 'Aspose.Drawing, Version=24.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56'. Das System kann die angegebene Datei nicht finden.
File name: 'Aspose.Drawing, Version=24.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56'
The german part of the error translates to “The system cannot find the file specified”.
See attached sample: AsposePDFDependencies.zip (7.9 KB)
Bonus question: the parent assembly “Aspose.Imaging” is loaded, but apparently not from a disc location, as the property “Assembly.Location” is null. Where does it come from - is it embedded in “Aspose.PDF”?
It works if I add the packages “Aspose.Drawing” and “Aspose.Imaging”.
I ran into a similar issue with Aspose.Cells.GridDesktop - maybe it is related: GridDesktop: Dependency "HtmlTextWriter"
Do you have any suggestions? We could simply ignore “Aspose.Imaging” in our preload code if you can confirm that it is safe to do so.