To solve the issue PDFNET-48049 (System.NotImplementedException: PKCS#1 does not support ocsp, timestamp settings, use PKCS#7), which was fixed in version 24.12, I updated the version of Aspose.PDF from 22.1.0 to 25.3.0. After that, I encountered a new error: System.IO.FileNotFoundException: Could not load file or assembly ‘System.Text.Encoding.CodePages, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified. image.png (4.7 KB)
After investigating, I found that there is an issue with references in Aspose.PDF NuGet. After installing Aspose.PDF version 25.3, System.Text.Encoding.CodePages 7.0.0 is installed: image.png (11.6 KB) image.png (15.6 KB) image.png (13.4 KB)
But the manifest specifies version 5.0.0: image.png (13.1 KB)
So when executed at runtime the application tries to find version 5.0.0 and cannot do so. As a result, an error appears.
I downloaded and manually replaced the System.Text.Encoding.CodePages.dll in the folder from version 7.0.0 to version 5.0.0 and the problem went away.
For me this looks like a bug and should be fixed in the Aspose.PDF NuGet, since it is impossible to use as is. Please advise if any other solutions or workarounds.
In my case the error appears in the following code: image.png (15.3 KB)
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-59561
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Hello. Have the developers had a chance to look at this issue to confirm this is a bug or not? We would like to at least understand the situation and what steps we should take.
We are afraid that the ticket hasn’t been fully reviewed yet due to other issues logged prior to it. As soon as we have some updates about its resolution, we will let you know via this forum thread. Please be patient and spare us some time.
We are afraid that the investigation of the ticket hasn’t been completed yet and we are not in a position to share any promising ETA for now. However, we have recorded your concerns and will surely investigate from this perspective. As soon as we make some progress towards ticket resolution, we will inform you. Please be patient and spare us some time.
I am having the same issue. Strangely the exception is thrown only when the code is run via UnitTests. When run from production code everything works fine.
Version: 25.3
Framework: 4.7.2
Exception throws on save methods of Document and PdfPageEditor classes.
Is there any kind of workaround for this issue?
Why can’t I see the attached files from the original post? It says those files are private. But they would have been helpful with analyzing the issue.
The is sadly still pending for a resolution. As it was logged recently, it will be investigated on first come first serve basis. As soon as some news is available about its resolution, we will inform you.
This is because of the privacy and security of our forums. Only the post creator and Aspose Staff have access to download the files.
We are afraid that the ticket hasn’t been yet resolved due to other issues in the queue. As soon as we have some certain news about its resolution, we will surely inform you. Please spare us some time.