on Windows 7 - Cant access C:\Windows\TEMP

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Converter for .NET (v1)  /  on Windows 7 - Cant access C:\Windows\TEMP

DynamicPDF Converter for .NET (v1) Forum

Hello,

Recently I tried to run this component on a Wndows 7 machine and its throwing error - Cant' Access C:\Windows\Temp\<FilenameGUID>.pdf, I can see a pdf is created in the directory under different filenameGUID.

Network user run this worker process, once I grant access to TEMP folder to this user - its all good.

This has been working well on our windows server/ XP boxes but on Windows 7 this error pops-up.

Can you please confirm this is not a defect and its going to work the same way on Windows 7 OR anyway to avoid this, please let me know.

Thanks,
Posted by a ceTe Software moderator
Hello,

Yes, you will need to have read and write permissions for the C:Windows\Temp folder. Converter by default writes the the file to the temp folder during the conversion process, and you would need to give permission to your user to access this temp folder.  If you wish to change the path you can do so by specifying a different location in the configuration file located at the following location

 C:\Program Files\ceTe Software\DynamicPDF Converter v1.0.0 for .NET\Service\ceTe.DynamicPDF.Converter.Service.exe.config

You have to change the "tempFilesPath" in the below string in the config file to the desired folder and stop and start the DynamicPDF Converter windows service.

    <ceTe.dynamicPdf.conversion tempFilesPath="%WINDIR%\TEMP" conversionsPerProcess="1000" printHtmlBackgroundColorAndImage="true" enableLogging="false" />

Thanks,
ceTe Software Support Team
After stopping/starting the service and even after restarting, this does not change the temporary path. Our clients use Windows 7 and what the path should be is %TEMP% **NOT** %WINDIR%/TEMP.... basic users do not have the proper permission for accessing windows directory files. Only administration users have such privileges... hence why it is so important for this config file to ACTUALLY change the temp files path.............
Posted by a ceTe Software moderator
Hello,

During conversion, the Converter needs a location to write temporary files to, and %WINDIR%\TEMP is the default path that the Converter is configured to use. In most cases, when the basic user run the program, their account may not have necessary privileges to write the temp files to %WINDIR%\TEMP, hence we provided a way (via config file) to set this path to a different location. This config file is intended for administrators and not the end users.

Based on what you are saying, changing the tempFilesPath value in the config file from %WINDIR%\TEMP to %TEMP% is not working. We will do some testing in that regard and post an update.

Thanks,
ceTe Software Support Team.
Posted by a ceTe Software moderator
Hello,

The reason why the temp files are still getting created in C:\Windows\Temp folder even after you change the temp file path to %TEMP% is that the Converter window service that generates the temp files during conversion does not run with the user account privileges. It runs with the privileges of the system account. Due to this reason, %TEMP% environment variable (with respect to system account) maps to C:\Windows\Temp. The Converter service will always need to run under system account. Use of other environment variables as temp file path will not work as they will map to system account specific folders. As the basic user may not be able to access the system folder, create a folder (For example C:\Temp\Converter) on the client machines that is accessible to all users. Then specify this folder path as temp file path in the Converter’s config file in place of %WINDIR%\Temp or %TEMP%.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 2:59 AM.