0
votes

I have a simple Azure Function deployed in a Linux App Service Plan. It uses DinkToPdf and so the libwkhtmltox library. I tryed it locally (on windows) using the 64bit dll version and it works.

The problem is with the deployed code when I call the function that uses DinkToPdf:

System.AggregateException: One or more errors occurred. (Unable to load shared library 'libwkhtmltox' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibwkhtmltox: cannot open shared object file: No such file or directory) ---> System.DllNotFoundException: Unable to load shared library 'libwkhtmltox' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibwkhtmltox: cannot open shared object file: No such file or directory

The complete error is:

enter image description here

In the /home/site/wwwroot there are these files:

enter image description here

In the /home/site/wwwroot/bin there are these files:

enter image description here

Thanks for any help :-)