您好,
我們使用 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.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.