Temp file path issue from IIS

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Converter for .NET (v1)  /  Re: Temp file path issue from IIS

DynamicPDF Converter for .NET (v1) Forum

 Sep 11 2015 5:08 PM
Hi,

Converter service is installed and working. We built a wrapper DLL to call DynamicPDF methods and all methods are working from a Windows app.

When we invoke methods to convert files from a Web service, we are getting access to path c:\Windows\Temp\<temporary pdf file> denied error. We can see the file in the c:\windows\temp directory. Also, we monitored the temp folder when using the converter from a Windows app and it does create file and delete it successfully.

We gave full permissions to the c:\windows\temp folder to NETWORK SERVICES and all other accounts used by IIS apps and application pools.

Could you please let us know how which account needs delete permissions when converter is called from IIS apps. We are not sure how the converter is able to create the file but not delete it.

Regards,
Satya
 Sep 14 2015 10:20 AM
Posted by a ceTe Software moderator
Hello,

The temporary files are generated by the DynamicPDF Converter service during the conversion process. By default it generates these temp files in the C:\WINDOWS\TEMP\ folder. This error might be caused because the Converter service is unable to create those temp files or unable to access or delete them due to lack of permissions.

Try giving read, write & delete permissions on the C:\windows\temp to the account under which your application is running. If this is a web application you may have to give permissions to the IUSR on this C:\Windows\Temp folder. The Converter service runs with the privileges of the local system account and this account should already have permissions on C:\windows\temp. Please check and make sure that it has read, write and delete permissions on the temp folder. Sometimes when you modify permissions to folders, it may take a server reboot for those permissions to come into effect.

Another option is to change the temp folder path that the DynamicPDF Converter Service uses to an appropriate location that has the above said permissions. This can be done in the config file of the Converter:

1. The configuration file ceTe.DynamicPDF.Converter.Service.exe.config is located at C:\Program Files\ceTe Software\DynamicPDF Converter v1.0.0 for .NET\Service\

2. Change the "tempFilesPath" entry in the below string in the config file to the desired folder.
<ceTe.dynamicPdf.conversion tempFilesPath="%WINDIR%\TEMP" conversionsPerProcess="1000" printHtmlBackgroundColorAndImage="true" enableLogging="false" />

3. Re-start the DynamicPDF Converter service from Administrative Tools --> Services.

Thanks,
ceTe Software Support Team.
 Oct 06 2015 11:20 PM
Thanks for the input. We actually found another old post with the answer and resolved it.
Appreciate the help.

Satya
 Oct 29 2021 4:36 PM
I am facing the same issue. Please post your resolution.
 Nov 01 2021 2:01 PM
Posted by a ceTe Software moderator
Hi,

This topic is related to v1 of DynamicPDF Converter. If you are using v3 or newer, please make sure to install the Windows Service when using the product from IIS. The service can be found in your projects "DPDFConverterService" folder if you referenced the product from NuGet, or in the "DPDFConverterService" folder of the download from our site. This folder contains a ReadMe  file with instructions on how to install it.  Please pay special attention to step #4 (copying the DLL to the folder) as it is easy to miss.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 1:45 AM.