Hi,
My company uses an application which in turn uses the Aspose PDF component for creating PDF documents.
Recently we've been experiencing an error when trying to create a PDF document and we receive the following message:
System.TypeInitializationException: The type initializer for 'ᠥ.㼂' threw an exception
The event viewer shows the following:
Message: System.TypeInitializationException: The type initializer for 'ᠥ.㼂' threw an exception. ---> System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at ᠥ.㼂..cctor()
--- End of inner exception stack trace ---
at ᠥ.㼂..ctor(㢊 part)
at ᠥ.㭐.ᰨ(㬶 Ս)
at 㪍.㿤.㪷(㭐 㿮, ӟ 㼈)
at Aspose.Words.Document.SaveToPdf(Int32 pageIndex, Int32 pageCount, Stream stream, PdfOptions options)
at CdcSoftware.Respond.BusinessLayer.CaseManagement.EntityManager.GetPdfFileData(Byte[] wordFileData)
at CdcSoftware.Respond.BusinessLayer.CaseManagement.EntityManager.SaveTemplateAttachmentDataToDatabase(Case caseEntity, Attachment attachment, Byte[] data, DateTime lastModifiedTime)
Does anyone know what might cause this and how we can resolve? When this has happened previously the problem seemed to resolve itself without any action (ie no server reboot, s/w install etc).
Thanks in advance for any help.
Phil