-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unable to load DLL 'libwkhtmltox' or one of its dependencies #1
Comments
Hello, Windows reference - libwkhtmltox.dll Add it to your project reference by custom Assembly reference & register in your startup project. |
Hello, yes actually i thought about that and tested it out, but i get a VS Error (that's german and in english it says) "The reference is invalid or not supported". I use VS2022, NET6 and as console. I have tested the 32bit and the 64bit version The files were in "HTMLconvert/HTMLconvert/Lib/". any suggestions? |
Please make sure that the wkhtmltopdf dependencies are enabled correctly. https://stackoverflow.com/questions/13791196/using-wkhtmltopdf-on-windows |
Hmm.. Must be some kind of github bug. Here is the link: https://stackoverflow.com/questions/13791196/using-wkhtmltopdf-on-windows Have you tried setting libwkhtmltox library dependencies manually? |
No, I just downloaded the file and added it under "Add project reference". Or what ur mean 😅 |
Ah, so you need to install wkhtmltopdf first |
oh where? |
oh i have thought all the time that i only have to import the dll... oops |
I can only find links for linux, but I would also like to debug it on windows etc. |
you are right
Unfortunately I didn't check the correct execution for Windows. |
that means it would work under linux? hm too bad, i don't really feel like developing on linux now. But Thanks, i´ll wait for the Windows Version |
Hey,
I was looking for a HTML => PNG converter for C# and was very happy when I saw this. Everything looks good except when I get to the "imageConverter.Convert(new ImageSettings()" it throws an exception "System.DllNotFoundException".
The text was updated successfully, but these errors were encountered: