The type initializer for 'SelectFont' threw an exception - Aspose.pdf.dll 6.7.0.0

Sometime I am getting below exception from Aspose.pdf.dll version 6.7.

System.TypeInitializationException: The type initializer for 'SelectFont' threw an exception. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception.

at Aspose.Pdf.Operator.SelectFont..cctor()

--- End of inner exception stack trace ---

at Aspose.Pdf.Operator.SelectFont..ctor(Int32 ,  )

at Aspose.Pdf.Operator.[1](Int32 ,  )

at Aspose.Pdf.InteractiveFeatures.DefaultAppearance..ctor( )

at Aspose.Pdf.InteractiveFeatures.Forms.Form..ctor(Document )

at Aspose.Pdf.Document.[1]()

at Aspose.Pdf.Document.[1](String , String )

at Aspose.Pdf.Document..ctor(String filename)

Intitailly I thought it is something to do with Fonts.Bu

Strangething is, this is not consitent, its happening only for some files.

And after restarting application no exception is generated for same file.

Thanks in advance.

Hi Ashvin,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for using our product.

Please share your sample application and template files with us to help us reproduce the issue at our end. Also, you may download and try the latest version of Aspose.Pdf for .NET v7.4 and test if it works fine or you still get the same issue.

Sorry for the inconvenience,