SfPdfViewerServer get error message

Hi support team,

After hosting my project to server-side, when I call the blazor (blazor server mode) in chrome browser in my local machine, I got the error message when trying to open pdf file via SfPdfViewerServer component (please help me take a look at the attached image in zip file). ​Everything works fine when I run all of them on my local machine.

What is an error message mean? How could I solve that issue?

Best regards,

Tho


Attachment: Screenshot_3_e3702dbd.zip

1 Reply

DM Dhivyabharathi Mohan Syncfusion Team July 30, 2021 12:20 PM UTC

Hi Nguyen, 
 
Thank you for contacting Syncfusion support. 
  
We suspect that the reported issue is due to the write access permission is denied in the environment, so the reported issue may have occurred. we can’t be able to place the pdfium.dll in the published location if the folder does not have read and write permission as we will create the pdfium.dll based on the operating system during the runtime of the control. So, we suggest placing the folder(X64) which contains the pdfium.dll in the project location. In the Visual Studio, right-click on the pdfium.dll and then choose properties, then choose the (copy to Output Directory) to copy always. So that on publishing the project the pdfium assembly will be shipped to the published location.   
   
    
     
   
    
    
We can also copy the below provided x64 and x86 folder and paste inside the folder(bin\Debug\netcoreapp2.1) in your published environment to resolve the issue or enable the write permission for that folder.   
    
  
  
    
Kindly try this and revert us, if you have any concerns.   
 
 
Regards, 
Dhivya. 



Loader.
Up arrow icon