i´m sorry but i tried already all ways cases. Maybe it helps if you see a part of my stacktrace.
I tried to set the permission to "every" for the tmp folder. Under high permission (application pool identity), i saw some tmp files and i got my pdf. But with the build-in account it dont work.
OS: Windows Server 2016 Standard
RAM: 32GB
System type: 64-bit OS, 64x-bases processor
Syncfusion.HtmlToPdfConverter.QtWebKit.AspNet.Mvc: 518.1.0.42
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3650.0
Thread information:
Thread ID: 23
Thread account name: ----------
Is impersonating: True
Stack trace:
at Syncfusion.Pdf.HtmlToPdf.HtmlToPdfResult.RenderWebKit(PdfPageBase page, PdfLayoutFormat format) +16554
at Syncfusion.Pdf.HtmlToPdf.HtmlToPdfResult.Render(PdfPageBase page, PdfLayoutFormat format) +175
at Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(String url) +1990
string baseUrl = HttpContext.Current.Server.MapPath("~");
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit);
WebKitConverterSettings webKitSettings = new WebKitConverterSettings()
{
PdfPageSize = new SizeF(PdfPageSize.A4.Width, 40),
Orientation = PdfPageOrientation.Landscape,
WebKitViewPort = new Size(1024, 0),
WebKitPath = baseUrl + @"\QtBinaries\",
TempPath = Settings.WebConfig.GetTempPath03(),
//TempFileName = "Syncfusion",
Username = Settings.WebConfig.GetServiceUsername(),
Password = Settings.WebConfig.GetServicePassword()
};
htmlConverter.ConverterSettings = webKitSettings;
string fullUrl = url + "/Form/PDF/?ID=" + id.ToString();
Syncfusion.Pdf.PdfDocument document = htmlConverter.Convert(fullUrl); //<-- error line
The Sample didn't work...
Failed to convert the webpage
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Syncfusion.Pdf.PdfException: Failed to convert the webpage
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[PdfException: Failed to convert the webpage]
Syncfusion.Pdf.HtmlToPdf.HtmlToPdfResult.RenderWebKit(PdfPageBase page, PdfLayoutFormat format) +16554
Syncfusion.Pdf.HtmlToPdf.HtmlToPdfResult.Render(PdfPageBase page, PdfLayoutFormat format) +175
Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(String htmlString, String baseUrl) +2109
Current:
With a custom Identity it works fine.