Hi,
I'm looking for a product, which I can use for serverside PDF generation from office documents.
What I'ld like to know is, if it is supported to use the .Net library from a WCF based service running on an IIS.
br,
/Sverre Eplov
Use DynamicWEB Converter on a server
Re: Use DynamicWEB Converter on a server
Support · Mar 12, 2010Hello,
Yes, you can use our DynamicPDF Converter product for creating PDF documents from server applications without any problem.
Installing our product will install a service and a printer in the server. You will need these in the server to do the conversion. You will also need to install necessary software (ex: MS Office is required to convert office files).
We have not seen any issues when using our product with WCF services. Please feel free to download the fully functional evaluation version of our product from our website
.
Thanks,
ceTe Software Support Team.
Re: Use DynamicWEB Converter on a server
Forum member · Mar 24, 2010Hi,
I've now created a WCF service, which runs very well on an IIS 7 as a service.
When I try to install the converter on a Windows Server 2003 R2 (Datacenter edition) running an IIS 6.0, I get the exception
System.Exception: Conversion failed ---> System.Exception: Context failed
at b9.a(l A_0, l A_1)
--- End of inner exception stack trace ---
at ceTe.DynamicPDF.Conversion.Converter.Convert(ConversionOptions conversionOptions)
at cr.b.b()
at cr.a(Byte[] A_0)
at cr.a(Object A_0)
I have done a debug trace on the server, and I can see, that the input file is available as it shoud be, and output directory does exist. The problem is the same no matter what type of file I try to convert, I've attempted .jpg, .doc and .xls.
Anyone know which tail I should chase to catch this particular dog ?
br,
/Sverre Eplov
Re: Use DynamicWEB Converter on a server
Support · Mar 24, 2010Hello,
Are you using the our converter code in WCF service which is running on IIS7? Or are you using it in server 2003? Please give us more details about how you are using our product. Please make sure that you have the converter service running and converter printer installed in the system where actually the conversion takes place.
Also make sure that you have the necessary software (MS Office for converting office files) installed in the system to do conversions.
Thanks,
ceTe Software Support Team.
Re: Use DynamicWEB Converter on a server
Forum member · Mar 24, 2010Hi,
In order to reproduce the problem in the simplest possible environment, I've created a small C# program, which invokes the converter as follows:
static void Main(string[] args) {
Converter.AddLicense("<correct-license-here>");
Converter.Convert("http://www.google.com", "Google.pdf");
Converter.Convert("TestJpg.jpg", "TestJpg.pdf");
Converter.Convert("TestWord.doc", "TestWord.pdf");
Converter.Convert("TestExcel.xls", "TestExcel.pdf");
}
When this is executed on my developer machine, four correct pdf's (with evaluation stamps) are produced.
When the same code is transferred to my Windows 2003 R2 server and executed there, the Goggle.pdf is produced correct. When attempting to convert the Testjpg.jpg file, the DynamicPDF convert fails with the exception stated earlier in the thread.
So it is clear, that it's not due to DyamicPDF converter being invoked from a WCF service, as the problem is the same, when DyamicPDF converter is used from a normal command line program.
Office 2007 Professionel Edition is installed on the 2003 server, and I've just reinstalled it in order to check, that it wasn't due to a flawed Office installation. The problem persists after Office was reinstalled.
Another problem is, that even though the correct license infomation was given in .AddLicense method, the google pdf still contains the evaluation stamps. I've verified, that the machine name on the server is the same as the one used to create the license key.
Hopes this helps,
br,
/Sverre Eplov
Re: Use DynamicWEB Converter on a server
Support · Mar 24, 2010Hello,
Can you please send over the image file which is giving this error to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further?
Are you unable to convert the .doc file .xls file if you comment the .jpg conversion line of code? When the .jpg conversion code gives an error, it will not execute the next lines.
Please double check the computer name once, you should not use the full computer name including the domain. You can also use the ASPX page downloading from our Customer Area http://www.DynamicPDF.com/CustomerArea/ by logging in using your serial number. The ASPX page will help you to retrieve the server's computer name.
Thanks,
ceTe Software Support Team.
Re: Use DynamicWEB Converter on a server
Forum member · Mar 24, 2010Well, I oversimplified the code I gave you - each call to Convert is wrapped in a try/catch, so all 4 conversions are attempted. The word and excell both just hangs, and I can see a WINWORD and an EXCEL process running, but consuming no CPU resources whatsoever. I'm beginning to suspect, that the server is somehow <beep>-ed up, and that I'm chasing a ghost. I will do a complete reinstall of the server (it's a vmware image anyway) to get at completely clean install and see, if the problem doesn't go away.
br,
/Sverre Eplov