pruiz / WkHtmlToXSharp

C# wrapper wrapper (using P/Invoke) for the excelent Html to PDF conversion library wkhtmltopdf library.
239 stars 84 forks source link

Auto-deploy of the native dll on linux 64 : System.DllNotFoundException: wkhtmltox0 #29

Closed laloutre87 closed 8 years ago

laloutre87 commented 10 years ago

Hi, I'm trying to use the library on a mod_mono / apache project on debian linux 64 bits. But i ran into this error :

System.DllNotFoundException: wkhtmltox0 at (wrapper managed-to-native) WkHtmlToXSharp.NativeCalls:wkhtmltopdf_version () at WkHtmlToXSharp.NativeCalls.WkHtmlToPdfVersion () [0x00000] in :0 at WkHtmlToXSharp.WkHtmlToPdfConverter..ctor () [0x00000] in :0 at WebDevCore.PdfExport.GetPdfBytesFromHtml (System.String HTMLContent, Double margin) [0x00000] in :0 at JdV5AdminWeb.print.ProcessRequest (System.Web.HttpContext context) [0x00000] in :0 at System.Web.HttpApplication+c__Iterator6.MoveNext () [0x00000] in :0 at System.Web.HttpApplication.Tick () [0x00000] in :0

It works well on my development enviroment ( windows / visual studio dev. web server ), and the code for deploying the dll seems to be called correctly. i got this on the log :

Deploying embedded libwkhtmltox0.so to /tmp/www-data-temp-aspnet-0/84dd945b/assembly/shadow/fb474576/ba29ae1b_416eeb6d_00000001

and Deployed /tmp/www-data-temp-aspnet-0/84dd945b/assembly/shadow/fb474576/ba29ae1b_416eeb6d_00000001/libwkhtmltox0.so with md5sum: 4F913853E31C3F4A9F3B6B1338E2AD8C.

The file does exists (is really created) in the above folder, and does have a +x flag on it.

Am i doing something wrong ?

pruiz commented 8 years ago

This should be fixed by now. Please re-open this otherwise.