I have been testing Aspose.Slides.NET6.CrossPlatform to get my app to work on osx.
On windows it works fine as before. But on osx I get:
TypeInitializationException:The type initializer for ‘\x05\x10\x15\x05’ threw an exception.
at \x05\x10\x15\x05…ctor(Presentation \x02)
at \x0e\x16\x1b\x15…ctor(TextFrame \x02)
at Aspose.Slides.TextFrame…ctor(\x06\x02\x1b\x1a \x02)
at Aspose.Slides.AutoShape.\x08()
at \x05\x02\x03\x02.\x02(IAutoShape \x02, \x0e\x10\x0f\x02 \x08, \x03\x17\x0f\x05 \x05)
at \x0f\x03\x1b\x02.\x02(\x08\x15\x05\x02 \x02, IGroupShape \x08, \x03\x17\x0f\x05 \x05)
at \x05\x1b\x16\x02.\x08(\x06\x15\x1a\x02 \x02)
at \x05\x1b\x16\x02.\x02(\x06\x15\x1a\x02 \x02)
at \x0e\x02\x1a\x02.\x02(\x06\x15\x1a\x02 \x02)
at \x06\x1b\x16\x02.\x02(\x03\x15\x1a\x02 \x02)
at \x03\x15\x16\x02.\x02(\x03\x15\x1a\x02 \x02)
at \x08\x17\x16\x02.\x02(\x03\x15\x1a\x02 \x02)
at \x08\x19\x1a\x02.\x0e\x0f()
at \x08\x19\x1a\x02.\x02(\x0e\x17\x05\x1a \x02, InterruptionToken \x08)
at Aspose.Slides.Presentation.\x02(\x0e\x17\x05\x1a \x02)
at Aspose.Slides.Presentation.\x02(Stream \x02, Boolean \x08)
at Aspose.Slides.Presentation.\x02(String \x02, Boolean \x08)
I’m basically just doing this:
var presentation = new Presentation(inputPath, new LoadOptions(LoadFormat.Pps));
presentation.Save(outputPath, SaveFormat.Pptx);
I tried to make a minimal CLI project to reproduce the issue but that works on osx.
My app is build on plugins that are downloaded, unzipped and loaded on demand. I made a minimal example of this as well and that of course also works on osx.
So now I’m stuck. Can you please give me some insights in this exception.