Unable to load wkhtmltox.dll in PROD environment only
Niranjan-KC opened this issue · comments
Hi, I am using Tuespechkin for HTML to PDF conversion. I am getting no issues in my dev and staging environment. When i deploy to PROD, i am getting the following error. "Unable to load DLL 'wkhtmltox.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) ".
My staging and PROD server is Windows Server 2012. Do i need Visual C++ 2013 installed in my server. Because i am just curious as to why it works in my staging. This is the code i am using
`public static IConverter converter;
converter = new ThreadSafeConverter(new RemotingToolset(new Win32EmbeddedDeployment(new StaticDeployment(System.Web.HttpContext.Current.Server.MapPath(@"~\bin")))));
GlobalSettings globalSettings = new TuesPechkin.GlobalSettings
{
DocumentTitle = "Quote Document",
ImageQuality = 100,
};
HtmlToPdfDocument pdfdoc = new TuesPechkin.HtmlToPdfDocument();
pdfdoc.Objects.Add(new TuesPechkin.ObjectSettings
{
HtmlText = template,
WebSettings = new TuesPechkin.WebSettings
{
LoadImages = true,
PrintBackground = true,
EnableJavascript = false
}
});
try
{
byte[] byteInfo = MvcApplication.converter.Convert(pdfdoc);
}`
Appreciate any help.
Yes, you will need VC++ installed.
Hi, I am using Tuespechkin for HTML to PDF conversion. I am getting no issues in my dev and staging environment. When i deploy to PROD, i am getting the following error. "Unable to load DLL 'wkhtmltox.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) ".
My staging and PROD server is Windows Server 2012. i have already installed Visual C++ 2013 x64 but issue is noot fixed
I Have same issue. Even with VC++ installed