Now and then, we get an error in our production environment when we want to save a new PDF document (see stacktrace beneath). The PDF generation is in a Windows service. When error occurs, it looks like something is "stuck" inside our application (haven't been able to find it in our code yet) or inside the Spire package. From then, every time a PDF has to be generated this error happens, until we restart the service. We were not able to reproduce the error yet.
We have no clue what this error means exactly. Which header are we talking about? Why could this header checksum be illegal anyway and why is it illegal in our case? Is there a way to extract the header that is mentioned in the error message? Do you have any more information about this specific exception, how to fix it or how to work around it? We found an old topic (post49277.html) about this error on the forum, but there doesn't seem to be a solution there.
- Code: Select all
System.FormatException: Header checksum illegal
at spr퀪.꺩()
at spr퀪..ctor(Stream A_0, Boolean A_1)
at spr켆.㶻(Byte[] A_0)
at spr䚌.濩(Byte[] A_0, spr뛲 A_1)
at spr䨕.ꯕ()
at spr居.ꯕ()
at spr뛲.ꡌ(spr랧 A_0)
at spr뛲.꤁(spr욀 A_0)
at spr풤.ꡌ(spr씖 A_0, spr쾱 A_1, List`1 A_2, Dictionary`2 A_3, Boolean A_4)
at spr풤.ꡌ(spr큦 A_0, Boolean A_1)
at spr풤.꤁(spr큦 A_0, spr학 A_1)
at spr풤.ꡌ(PdfDocumentBase A_0)
at Spire.Pdf.PdfNewDocument.Save(Stream stream)