System.DllNotFoundException: 'Unable to load DLL 'libwkhtmltox': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'

3

Getting error when trying to generate PDF from HTML template. I have a different class library for generating PDF and I'm calling that from another controller.

System.DllNotFoundException: 'Unable to load DLL 'libwkhtmltox': The specified module could not be found. (Exception from HRESULT: 0x8007007E)'

c#
api
asp.net-core
pdf-generation
asked on Stack Overflow Oct 3, 2018 by Kinjal Parmar

2 Answers

0

your csproj file to enforce copying NuGet assemblies to the built output:

<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
answered on Stack Overflow Oct 3, 2018 by Sinan BARAN
0

The files should at the root of the project and another thing that you know you should installed Microsoft Visual C++ Redistributable. follow this link

answered on Stack Overflow Feb 23, 2020 by Ali.Asadi

User contributions licensed under CC BY-SA 3.0