Aspose.Slides读取ppt报错,错误如下

System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for ‘Aspose.Slides.Presentation’ threw an exception.
Source=Aspose.Slides
StackTrace:
at Aspose.Slides.Presentation…ctor(String file)
at AsposeDemo.Program.Ppt2Pdf(String fromPath, String toPath) in E:\myproject\SharePrint\code\Demo\AsposeDemo\AsposeDemo\Program.cs:line 145
at AsposeDemo.Program.Main(String[] args) in E:\myproject\SharePrint\code\Demo\AsposeDemo\AsposeDemo\Program.cs:line 47

内部异常 1:
TypeLoadException: Could not load type ‘System.Drawing.FontStyle’ from assembly ‘System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.

@jobroon

请与示例代码一起分享在您这边重现问题的源文件。 我假设您使用的是最新版本的 Aspose.Slides。