PDF Viewer is not working on published app BUT it works in development

PDF viewer works on development but when the app is published to IIS it does not work.

please see the attached image.

I am trying to use the project you provided here, and make the PDF viewer & DOCio sample to work.

Can you please check and maybe provide a working project when published?

Project sample 

https://drive.google.com/file/d/1R974vWTH9BLK97FPi2p3aY6MKKJgl7uP/view?usp=sharing

similar to .net core3 project here:https://www.syncfusion.com/forums/164213/docio-need-some-help-example




Attachment: PDF_Viewer_not_working_ff8af876.zip

1 Reply

DM Dhivyabharathi Mohan Syncfusion Team June 28, 2021 10:41 AM UTC

Hi Danil, 
  
  
Thanks 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 IIS 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\net5.0) in your IIS 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