Html to pdf conversion using webkit on WebForms failing after upgrading Windows 2016 Server to 2019 Server

Hi Guys,

I have been trying to solve this for a couple of days now.

It works fine on my dev machine which is also Windows 2019 Server.
The error message I usually get is: 

System.UnauthorizedAccessException: 'Access to the path 'C:\WINDOWS\TEMP\1d45b9ed-622c-48e3-bbbc-5d4fd3fc1a77' is denied.'
Same error message for any folder I set the TempPath setting to.  I make sure the folder has "Create Owner" permissions and also full rights to the process/app pool the website is running under.

Any advice or suggestions as to what to try or do next?






1 Reply 1 reply marked as answer

SG Sivaram Gunabalan Syncfusion Team April 15, 2021 03:54 PM UTC

Hi Brent Welke, 

Thanks for contacting Syncfusion support. 

Our WebKit HTML converter internally creating temporary files in temporary folder for converting HTML to PDF. So, it requires read/write and execute permission for the temp folder. When hosting the application to IIS, our converter makes use of system temporary folder (By default, C://Windows//Temp). So, please make sure this path has required permission for the respective user group (IIS_IUSRS). If you are hosting the application in IIS, please try to add IIS_IUSRS user group and provide full access permission to the temp folder.  

Kindly refer below UG link for more information.  


If above solution not suites for you, kindly try setting different folder as TempPath which have enough permission, Please refer below link to set the TempPath folder.  

If still you are facing the same issue, please let us know we can have web meeting to directly look into the issue on your machine and provide you the solution at the earliest. Please let us know your availability for web meeting. We will make every effort to have this scheduled on a date and time of your convenience. 

Regards, 
Sivaram G 


Marked as answer
Loader.
Up arrow icon