I am getting a problem with Aspose Powerpoint when I run the getThumbnail function. It is an intermitant problem. Every so often, I get a Win32Exception of “Class Already Exists”. I’m not doing anything fancy; the problem is almost definitely with AP. Below is a bit of the code. Please, if anyone can help, please do.
Thanks.
Andrew Wied
Class already exists
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: Class already exists
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
Win32Exception (0x80004005): Class already exists] System.Windows.Forms.WindowClass.RegisterClass() +1091 System.Windows.Forms.WindowClass.Create(String className, Int32 classStyle) +181 System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp) +215 System.Windows.Forms.Control.CreateHandle() +212 System.Windows.Forms.Control.get_Handle() +60 System.Windows.Forms.Control.CreateHandle() +199 System.Windows.Forms.TextBoxBase.CreateHandle() +54 System.Windows.Forms.Control.get_Handle() +60 System.Windows.Forms.RichTextBox.ForceHandleCreate() +5 System.Windows.Forms.RichTextBox.set_SelectedText(String value) +13 System.Windows.Forms.TextBoxBase.AppendText(String text) +105 Aspose.PowerPoint.TextHolder.Draw(Image img) +320 Aspose.PowerPoint.Slide.GetThumbnail(Double scaleX, Double scaleY) +431