Hi,
I'm running across an issue where I have to restart the DynamicPDF service before each conversion to get it to work. If I do not, the conversion will hang in the print queue. Is there anything I can do to resolve this?
Thanks.
System: Windows 7 Professional w/ IE8. ceTe.DynamicPDF.Converter.35, Version=1.0.0.17633
Windows 7 - Need to Restart Service Each Time To Convert
Re: Windows 7 - Need to Restart Service Each Time To Convert
Support · Mar 24, 2011Hello,
Can you please let us know what file types you are trying to convert using our DynamicPDF Converter product? Also please follow the below steps to reinstall the DynamicPDF Converter print driver and try the conversions again to see if you they are all successful.
1. Double click on the DynamicPDF Converter printer
2. Go to the menu Printer and click Cancel All Documents.
3. Close the DynamicPDF Converter printer window
4. Follow the below steps a to e to reinstall the DynamicPDF Converter print driver. You would need to run the command prompt under admin permissions and execute the batch files.
a. Stop and start the spooler service. (Caution: This might cause other print jobs to fail.)
b. Execute "AddPrinter" with uninstall option from command prompt.
C:\Program Files\ceTe Software\DynamicPDF Converter v1.0.0 for .NET\Printer>AddPrinter.exe /u
c. Execute "DeletePrintDriver"
C:\Program Files\ceTe Software\DynamicPDF Converter v1.0.0 for .NET\Printer>DeletePrinterDriver_x86.bat or (DeletePrinterDriver_x64.bat)
d. Execute "AddPrinter"
C:\Program Files\ceTe Software\DynamicPDF Converter v1.0.0 for .NET\Printer>AddPrinter.exe
e. Stop and start the DynamicPDF Converter Service
Thanks,
ceTe Software Support Team.
Re: Windows 7 - Need to Restart Service Each Time To Convert
Forum member · Mar 28, 2011Thanks for the reply.
I am using Converter.ConvertHtmlStringToWeb(html, options) to convert. It will work fine on my Windows XP machine, but I get the above issue on Windows 7.
I have tried to reinstall the printer as you have instructed, but I still run across the same issue where it will convert successfully the first time, and then I need to restart the service because the job gets stuck in the print queue with a status of 'Error - Printing'.
Please advise. Thank you.
Re: Windows 7 - Need to Restart Service Each Time To Convert
Support · Mar 28, 2011Hello,
Please follow the below instructions to enable logging for Converter service on your Win 7 machine and run a couple of HTML conversions and once it hangs please retrieve the log files and email them to [^a|mailto:support@cete.com|opennewiwndow|support@cete.com^] along with the below information.
1. Is the Win 7 Professional edition you are using a 64-bit or 32-bit OS?
2. Does the conversion work for text or image files?
3. Provide a sample HTML file or string that you are unable to convert along with the log files.
Instructions to enable logging
Set the enableLogging to true in the below config file. The log file will be saved at the tempFilesPath location, which could be changed as well.
C:\Program Files\ceTe Software\DynamicPDF Converter v1.0.0 for .NET\Service\ceTe.DynamicPDF.Converter.Service.exe.config
<ceTe.dynamicPdf.conversion tempFilesPath="%WINDIR%\TEMP" conversionsPerProcess="1000" printHtmlBackgroundColorAndImage="true" enableLogging="true" />
After changing the configuration stop and start the DynamicPDF Converter service for the change to take effect.
The log files will be generated with the following names
DynamicPDFConverter.log will be generated for general logging.
DynamicPDFConverterONLOGERROR.log will be generated in the case of an error. May not be generated in case where the conversion hangs.
Thanks,
ceTe Software Support Team.
Re: Windows 7 - Need to Restart Service Each Time To Convert
Support · Apr 19, 2011Hello,
This is a know issue with Converter on Windows 7 machine, currently our developers are looking into it. Meanwhile please use the below workaround to prevent the conversion from hanging.
Workaround: Open the Converter service config file located at:
C:\Program Files\ceTe Software\DynamicPDF Converter v1.0.0 for .NET\Service\ceTe.DynamicPDF.Converter.Service.exe.config
Change the "conversionsPerProcess" in the below string in the config file to “1” instead of the default value of “1000”. Then stop and start the DynamicPDF Converter windows service for these changes to take effect.
<ceTe.dynamicPdf.conversion tempFilesPath="%WINDIR%\TEMP" conversionsPerProcess="1000" printHtmlBackgroundColorAndImage="true" enableLogging="true" />
Thanks,
ceTe Software Support Team.
Re: Windows 7 - Need to Restart Service Each Time To Convert
Forum member · Apr 20, 2011I'm using the DynamicPDF.Converter.dll (not the service) with Windows 7 to convert html files into .pdf files. The resulting error is:
"No connection could be made because the target machine actively refused it 127.0.0.1:3425"
Is this issue related? If not related, do you have a solution for it?
Thanks,
Peter
Re: Windows 7 - Need to Restart Service Each Time To Convert
Support · Apr 20, 2011Hello Peter,
The DynamicPDF.Converter.dll needs the DynamicPDF Converter windows service in order to be able to convert files. If you do not have the converter service installed on the machine that is running your application to convert the HTML files, the conversion will not work. Please make sure that you have the product installed on your machine.
Thanks,
ceTe Software Support Team