Permissions issue when writing file

Hello,

I have installed a version of our program which utilizes syncfusion and when I try to show a report using the syncfusion pdfViewer, I receive the message shown in the attached image. When I install the program on a clean sandbox environment, I do not receive this message and I can display the report as expected. Additionally, when a colleague of mine downloads the same program onto his computer, he is also able to display the report with no issues.  Can you provide a solution for this error? 


Attachment: image_(3)_8995dbda.zip

1 Reply

YM Yathavakrishnan Mohan Syncfusion Team March 14, 2025 01:22 PM UTC

Hi Natalie,


The issue arises due to access restrictions on the application's launching folder. By default, the Pdfium assemblies are generated in the bin folder when the application runs. However, if the application is launched in system-restricted folders, it becomes unable to create the Pdfium assemblies. These assemblies are essential for the proper functioning of the WPF PDF Viewer. In this restricted environment, we can use the ReferencePath property of the PDF Viewer control. By setting the
ReferencePath , the PDF Viewer control will extract the Pdfium assemblies to the specified folder and utilize them. Please refer to the code snippet and user guide link below for additional guidance.


            // set the reference path of PDFViewer control

           pdfViewer.ReferencePath = @"D:\ThirdPartyBinaries\";

 

            pdfViewer.Load("Sample.pdf");


User Guide :
PDF Rendering Engines in WPF Pdf Viewer control | Syncfusion<sup>®</sup>;


Note : Please provide the folder that has write permission to the `ReferencePath` property.

Regards,
Yathavakrishnan M


Loader.
Up arrow icon