Hi:
I am developing an application with the PDFDocument control and PDControlView for Winform.
Loading a PDF produces a System.NullReferenceException error: 'Object reference not set to an instance of an object.' in
Application.Run(new Form1()). This same error is generated in the demos, for example in MultiTabbedViewer_2017.
This using Windows 11, professional, visual Studio 2022 and Syncfusion Essential Studio 22.2.5. PDF attachment that generates the error. This file loads and opens perfectly with Acrobat Reader
Best regard
Hi Jesus,
With the provided details, the reported issue "System.NullReferenceException thrown while loading a specific document" can be reproduced on our end. We will analyze and update further details on September 7, 2023.
Jesus, we have confirmed the issue “System.NullReferenceException thrown
while loading a specific document” as a defect in
our product and we will include the fix in our upcoming weekly NuGet release,
which will be expected to be available at the end of September, 2023.
Please use the below feedback link to track the status of the reported bug.
https://www.syncfusion.com/feedback/46712/null-reference-exception-while-getting-pdf-page-resources
Note: If you require a patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Hi,
First of all, thanks for the quick response.
I would be interested in receiving the corresponding patch for the Essential Studio for WinForms 22.2.5 version
Best regards
As per the request, we will provide a patch for this fix in the mentioned version 22.2.5 on September 18, 2023.
Hi Jesus,
The reported issue “System.NullReferenceException
thrown while loading a
specific document” has been fixed and
the patch for this fix can be downloaded from the following location. We
have created the patch with essential studio version 22.2.5.
Recommended approach - exe will perform automatic configuration.
Please find the patch setup from below location:
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from below location:
NuGet package: https://syncfusion.com/Installs/support/patch/22.2.5/1534135/F184421/SyncfusionNuget_22.2.5_1534135_9142023070431993_F184421.zip
Assembly Version: 22.2.5
Installation Directions :
This patch should replace the files “Syncfusion.Pdf.Base, Syncfusion.PdfViewer.Windows” under the following folder.
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.6
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\9.3.0.61\precompiledassemblies\9.3.0.61\4.0
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.
Note :
You can change how you receive bug fixes by navigating to the following link and updating your preferences.
https://www.syncfusion.com/support/directtrac/patches
Disclaimer :
Please note that we have created this patch for version 22.2.5 specifically to resolve the following issue(s) reported in this/the incident(s). 184421
If you have received other patches for the same version for other products, please apply all patches in the order received.
This fix will be included in our 2023
volume 3 SP1 release
which will be available in end of November 2023 tentatively.
Please find the feedback link below,
https://www.syncfusion.com/feedback/46712/null-reference-exception-while-getting-pdf-page-resources
Best Regards,
Krithika