Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
342 views
in Technique[技术] by (71.8m points)

asp.net core - Rotativa pdf failing in shared server with restriction for exe files

Using Rotativa (from npm) for generating reports as pdf in my .Net Core3.1 Web Application and has been working fine until recently when there was a change in our Host Server.

Our previous server (shared), where it was working, allowed exe files and had the foll. files in place (wwwrootRotativa)

  • wkhtmltopdf.exe
  • wkhtmltoimage.exe
  • help-wkhtmltoimage.txt
  • help-wkhtmltopdf.txt

However the new server (shared) to which we migrated does not allow executable files for security reasons. For this reason, files wkhtmltopdf.exe & wkhtmltoimage.exe were denied access and cannot be present in Rotativa folder. Since then Rotativa pdf generation started failing.

I tried using some dll files like msvcp120.dll, msvcp140.dll, msvcr120.dll, vcruntime140.dll, wkhtmltox.dll etc. in the same location ; But no luck yet.

How to get over this and get Rotativa working again?

question from:https://stackoverflow.com/questions/66058619/rotativa-pdf-failing-in-shared-server-with-restriction-for-exe-files

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...