Hi,
I am facing a strange scenario with GroupDocs.Conversion. Every now and then, when we redeploy our solution to Azure Function, there is a 1 in 10 chance that it will start throwing exceptions. We have tried two different versions but the problem is there in both. I have added some sample exceptions below. These exceptions go away when we re-deploy our solution, but we are getting tired of having to keep an eye out for this.
Platform: Azure Functions - Queue Trigger .NET Framework 4.6
Versions Tested: GroupDocs.Conversion 19.1.0.0 and 18.5.0.0
Libraries referenced by the solution:
Aspose.Words 19.2.0
Aspose.Pdf 19.2.0
GroupDocs.Conversion 19.1.0
Since we have used both GroupDocs.Conversion and Aspose.Pdf/Aspose.Words in the same project, could this be a type/assembly version conflict? Please help!
Regards,
Zeeshan
==================
Exception 1
Could not load type ‘Aspose.Pdf.Document’ from assembly ‘Aspose.PDF, Version=18.4.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’.
System.TypeLoadException: at . (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at undefined (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at GroupDocs.Conversion.Handler.ConversionHandler. (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at GroupDocs.Conversion.Handler.ConversionHandler.Convert (GroupDocs.Conversion, Version=18.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at BoardPro.Functions.Pdf.Business.Conversion.DocumentToPdfProvider.ConvertToPdfDocument (BoardPro.Functions.Pdf.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) at BoardPro.Functions.Pdf.Business.Conversion.DocumentToPdfProvider.LoadPdfFromDocument (BoardPro.Functions.Pdf.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) at BoardPro.Functions.Pdf.Business.Conversion.PdfConversionHandler.ConvertToPdfFile (BoardPro.Functions.Pdf.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)
==================
Exception 2
Bad IL range. Bad IL range.
Aspose.Slides.PptxReadException: at Aspose.Slides. . (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides.Presentation. (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides.Presentation. (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides.Presentation. (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides.Presentation…ctor (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at GroupDocs.Conversion.Handler.ConversionHandler.Convert (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at BoardPro.Functions.Pdf.Business.Conversion.DocumentToPdfProvider.ConvertToPdfDocument (BoardPro.Functions.Pdf.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) at BoardPro.Functions.Pdf.Business.Conversion.DocumentToPdfProvider.LoadPdfFromDocument (BoardPro.Functions.Pdf.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) at BoardPro.Functions.Pdf.Business.Conversion.PdfConversionHandler.ConvertToPdfFile (BoardPro.Functions.Pdf.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) Inner exception System.BadImageFormatException handled at Aspose.Slides. .: at Aspose.Slides. . (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. . (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. .83ugfqaran7zgs2qub4m6eltqdmbhmlf (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. . (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. . (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. . (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at Aspose.Slides. . (Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
==================
Exception 3
Could not load type ‘Aspose.Slides.Presentation’ from assembly ‘Aspose.Slides, Version=18.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’.
System.TypeLoadException: at . (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at . (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at GroupDocs.Conversion.Handler.ConversionHandler.Convert (GroupDocs.Conversion, Version=19.1.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56) at BoardPro.Functions.Pdf.Business.Conversion.DocumentToPdfProvider.ConvertToPdfDocument (BoardPro.Functions.Pdf.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) at BoardPro.Functions.Pdf.Business.Conversion.DocumentToPdfProvider.LoadPdfFromDocument (BoardPro.Functions.Pdf.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) at BoardPro.Functions.Pdf.Business.Conversion.PdfConversionHandler.ConvertToPdfFile (BoardPro.Functions.Pdf.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)