您好,
我們使用 Aspose.Words.DocumentBuilder.InsertImage 時,隔幾天就會出現 “在 GDI+ 中發生泛型錯誤。” 而當發生這錯誤時,一定要重新啟動電腦才錯誤才會消失。
詢問 Microsoft 的回覆是 System.Drawing 不建議使用在 Windows or ASP.NET service。
詳給請參考: System.Drawing.Imaging Namespace | Microsoft Learn
Caution
Classes within the System.Drawing.Imaging namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.