-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on linux #55
Comments
fetch a wkhtmltox0.so for your linux distro from wkhtmltopdf website, and
copy it to the same folder where you are running your mono app, and try
again.
Regards
…On Wed, Apr 10, 2019 at 4:40 PM Valeriob ***@***.***> wrote:
Hi,
running the library on linux it does not seems to have the wkhtmltox0
library embedded, since it produces the following error :
An unhandled exception has occurred while executing the request.
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.DllNotFoundException: Unabl to
load shared library 'wkhtmltox0' or one of its dependencies. In order to
help diagnose loading problems, consider setting the LD_DEBUG env ronment
variable: libwkhtmltox0: cannot open shared object file: No such file or
directory
at WkHtmlToXSharp.NativeCalls.wkhtmltopdf_version()
at WkHtmlToXSharp.WkHtmlToPdfConverter..ctor()
at WkHtmlToXSharp.MultiplexingConverter.<>c.<.ctor>b__26_0()
--- End of inner exception stack trace ---
at Sanford.Threading.DelegateQueue.EndInvoke(IAsyncResult result)
at Sanford.Threading.DelegateQueue.Invoke(Delegate method, Object[] args)
at WkHtmlToXSharp.MultiplexingConverter..ctor()
at HtmlToPdfCore.Web.Controllers.HomeController.GenerateTestPdf() in
C:\Dev\OnitGit\OnTms\src\HtmlToPdf\HtmlToPdfCore.Web\Controllers\HomeC
ntroller.cs:line 26
at lambda_method(Closure , Object , Object[] )
at
Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper
mapper, ObjectMethodExec tor executor, Object controller, Object[]
arguments)
at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext
context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State&
next, Scope& scope, Object& state, Boolean& isCompleted)
at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
at
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
at
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext
context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next,
Scope& scope, Object& state, Boolean& isCompleted)
at
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext
httpContext)
at
Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.Invoke(HttpContext
httpContext)
at
Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext
context)
at
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext
context)
the nuget packages for WkHtmlToXSharp.Linux32 version 1.2.* are all very
small (20k) i doubt it has the linux lib embedded, 1.1.latest it's 15+Mb
instead, looks working.
Unfortunatly version 1.1.23.22 does not work on windows either :(
Can you point me to a solution ?
Valerio
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#55>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALq-XoK_u9tpLVdaCuqs_SEIJBrUTq8ks5vfffkgaJpZM4cnOg->
.
|
Thanks, I have tried that with the same result. I'm running on Ubuntu server. |
ensure you have all wkhtmltox0.so dependencies by running ldd against it.
…On Wed, Apr 10, 2019 at 9:11 PM Valeriob ***@***.***> wrote:
Thanks, I have tried that with the same result. I'm running on Ubuntu
server.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALq-VpUxz9UszX63yA1w-RES5y9cH7Gks5vfjdOgaJpZM4cnOg->
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
running the library on linux it does not seems to have the wkhtmltox0 library embedded, since it produces the following error :
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unabl to load shared library 'wkhtmltox0' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG env ronment variable: libwkhtmltox0: cannot open shared object file: No such file or directory
at WkHtmlToXSharp.NativeCalls.wkhtmltopdf_version()
at WkHtmlToXSharp.WkHtmlToPdfConverter..ctor()
at WkHtmlToXSharp.MultiplexingConverter.<>c.<.ctor>b__26_0()
--- End of inner exception stack trace ---
at Sanford.Threading.DelegateQueue.EndInvoke(IAsyncResult result)
at Sanford.Threading.DelegateQueue.Invoke(Delegate method, Object[] args)
at WkHtmlToXSharp.MultiplexingConverter..ctor()
at HtmlToPdfCore.Web.Controllers.HomeController.GenerateTestPdf() in C:\Dev\OnitGit\OnTms\src\HtmlToPdf\HtmlToPdfCore.Web\Controllers\HomeC ntroller.cs:line 26
at lambda_method(Closure , Object , Object[] )
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExec tor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
the nuget packages for WkHtmlToXSharp.Linux32 version 1.2.* are all very small (20k) i doubt it has the linux lib embedded, 1.1.latest it's 15+Mb instead, looks working.
Unfortunatly version 1.1.23.22 does not work on windows either :(
Can you point me to a solution ?
Valerio
The text was updated successfully, but these errors were encountered: