Hi. I created an application which uses Syncfusion's HTML to PDF conversion libraries. Everything works as expected on my dev machine.
But when I published the project, I am getting assembly error.
I even referred to the article here:
https://www.syncfusion.com/kb/8841/how-to-publish-html-to-pdf-converter-to-serverBut no luck.
I do see that there are no assmbly entries in he web.config file.
Here's the error I am getting:
Could not load file or assembly 'Syncfusion.Compression.Base, Version=17.3450.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
"Exception": "System.IO.FileLoadException: Could not load file or assembly 'Syncfusion.Compression.Base, Version=17.3450.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\nFile name: 'Syncfusion.Compression.Base, Version=17.3450.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'\r\n at
Syncfusion.Pdf.Compression.PdfZlibCompressor.Compress(Stream inputStream)\r\n at Syncfusion.Pdf.Compression.PdfZlibCompressor.Compress(Byte[] data)\r\n at Syncfusion.Pdf.Primitives.PdfStream.CompressContent(IPdfWriter writer)\r\n at Syncfusion.Pdf.Primitives.PdfStream.Save(IPdfWriter writer)\r\n at Syncfusion.Pdf.IO.PdfArchiveStream.Save(IPdfWriter writer)\r\n at Syncfusion.Pdf.IO.PdfCrossTable.DoSaveObject(IPdfPrimitive obj, PdfReference reference, PdfWriter writer)\r\n at Syncfusion.Pdf.IO.PdfCrossTable.SaveArchives(PdfWriter writer)\r\n at Syncfusion.Pdf.IO.PdfCrossTable.Save(PdfWriter writer)\r\n at Syncfusion.Pdf.PdfDocument.Save(Stream stream)\r\n at RuleEngine.RunActionResponse(Nullable`1 clientId, Nullable`1 loanId, CustomRuleQuery customQuery,) in D:\\CNG\\RuleEngine.cs:line 2415\r\n\r\nWRN: Assembly binding logging is turned OFF.\r\nTo enable assembly bind failure logging, set the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) to 1.\r\nNote: There is some performance penalty associated with assembly bind failure logging.\r\nTo turn this feature off, remove the registry value [HKLM\\Software\\Microsoft\\Fusion!EnableLog].\r\n"