Exception while converting word document

Exception while converting word document

Forum member · Jan 7, 2010
Hi I am developing an application to convert word documents to pdf. I downloaded the 32 bit version and developed the application on Windows Vista / Visual Studio 2008. When deploy this application to other machines running Widows 7 or Widows server 2003 R2 It throws an exception System.Exception: PrintOut returns 0x80004005 at cf.a(l A_0, l A_1) --- End of inner exception stack trace --- at ceTe.DynamicPDF.Conversion.Converter.Convert(ConversionOptions conversionOptions) at bt.b.b() at bt.a(Byte[] A_0) at bt.a(Object A_0) I don't know if there are any specific requirements for deployment. Both Windows 7 and 2003 server has Office 2007 installed. Thanks Qazi

Re: Exception while converting word document

Support · Jan 7, 2010
Hello Qazi, Can you please try installing the product in the system where you are running the application using the installer downloaded from our CustomerArea by logging in using your serial number? If you are evaluating then you can get it from our website . Uninstall the service and printer before installing the new copy. Then try running the application and see if it works. Also try converting any other file types and see if any of them gets converted. Please let us know the full details of the errors and the other file types are working or not. Thanks, ceTe Software Support Team.

Re: Exception while converting word document

Forum member · Jan 7, 2010
Hi I cannot see a Dynamic PDF printer on servers, I tried installing all Dynamicpdf products that are installed on devlopment machine, whereas it exist on dev machine. OS on dev machine is Vista Home Premium Test Machine : windows 7

Re: Exception while converting word document

Forum member · Jan 7, 2010
to add more to previous post. I tried adding a printer as dynamic pdf converter printer on Dynamic PDF Converter Port, but it did not worked. I get the same printout error System.Exception: Conversion failed ---> System.Exception: PrintOut returns 0x80004005 at cf.a(l A_0, l A_1) --- End of inner exception stack trace --- at ceTe.DynamicPDF.Conversion.Converter.Convert(ConversionOptions conversionOptions) at bt.b.b() at bt.a(Byte[] A_0) at bt.a(Object A_0)

Re: Exception while converting word document

Support · Jan 7, 2010
Hello Qazi, Currently DynamicPDF Cconverter will not work on Windows 7 OS. There is an issue with the OS and the issue has been reported to Microsoft. Once Microsoft resolves it, we will be able to support conversion on Windows 7 OS. It has been tested on Windows Server 2003 R2 and the conversion should work fine. Please make sure that the DynamicPDF Converter printer shows up in Printer and Faxes and also DynamicPDF Converter service is running. Then only you will be able to do the conversion. Did you run the installer on Windows Server 2003 R2 or just copied the files manually? Thanks, ceTe Software Support

Re: Exception while converting word document

Forum member · Jan 8, 2010
Hi I made it work on windows 7 but not on 2003 server. Here is what did. Windows 7 1. I uninstalled 32 bit version. 2. Installed 64 bit version. 3. It started working. Windows 2003 server. 1. 64 bit Instaler does not work. It errors out on AddPrinter.exe and rolls back. I am logged in there as Administrator. 2. I installed 32 bit version. Software installed and can see the dynamic pdf printer and the converter service running. 3. When I try to convert I got an exception. Details below 4. Ultimately this will as a windows service for us. Any guidance in this regard will be appreciated. Same error occurs in windows service as well as dektop application. Exception details below are from desktop application. Thanks Qazi See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Exception: System.Exception: Conversion failed ---> System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog() at cr.b(String A_0, String A_1) at cf.a(l A_0, l A_1) --- End of inner exception stack trace --- at ceTe.DynamicPDF.Conversion.Converter.Convert(ConversionOptions conversionOptions) at bt.b.b() at bt.a(Byte[] A_0) at bt.a(Object A_0) ---> System.Exception: System.Exception: Conversion failed ---> System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog() at cr.b(String A_0, String A_1) at cf.a(l A_0, l A_1) --- End of inner exception stack trace --- at ceTe.DynamicPDF.Conversion.Converter.Convert(ConversionOptions conversionOptions) at bt.b.b() at bt.a(Byte[] A_0) at bt.a(Object A_0) at a3.a(Object A_0) --- End of inner exception stack trace --- [Removed by Moderator] ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

Re: Exception while converting word document

Forum member · Jan 8, 2010
P.S. This is a different exception from what we saw before. Thanks Qazi

Re: Exception while converting word document

Support · Jan 8, 2010
Hello Qazi, This is a known error and it is documented in our help documentation. You can refer to the Error Guide on our help documentation for solving this problem. You will have to allow the service to interact with desktop and this is not set by default. This is the reason for the error you are getting. Thanks, ceTe Software Support Team.