Hello!
Aspose.Words for .NET 15.10.0 is throwing the error with some our documents (invoices).
Aspose.Words for .NET 15.10.0 is throwing the error with some our documents (invoices).
Error text:
ContextSwitchDeadlock was detected. The CLR has been unable to transition from COM context 0x2bc2e8 to COM context 0x2bc458 for 60 seconds.
for the attached DOC. Here's the code to save doc as pdf:
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Words.lic");
Aspose.Words.Document doc = new Aspose.Words.Document(FileName);
pdfFileName = Path.ChangeExtension(FileName, ".pdf");
doc.Save(pdfFileName, Aspose.Words.SaveFormat.Pdf);
ContextSwitchDeadlock was detected. The CLR has been unable to transition from COM context 0x2bc2e8 to COM context 0x2bc458 for 60 seconds.
for the attached DOC. Here's the code to save doc as pdf:
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Words.lic");
Aspose.Words.Document doc = new Aspose.Words.Document(FileName);
pdfFileName = Path.ChangeExtension(FileName, ".pdf");
doc.Save(pdfFileName, Aspose.Words.SaveFormat.Pdf);
By the way, this code works good without licence.