I have a program that I wrote and it works fine when I run it stand alone, but when I call it from another program using Process.Start() it locks up at the first call of MergeDocument.Merge, any help would be appreciated.
program locks up when called from another process
Re: program locks up when called from another process
Support · Jul 17, 2007Hello,
Can you please tell us what exact error message are you receiving? Is your stand alone application a console application? The other program you refer to, is it also a Console application, web application or winform application?
Thanks,
ceTe Software Support Team
Re: program locks up when called from another process
Forum member · Jul 17, 2007The standalone is a console app that is called by a web app, I had it working until I added the Dynamic pdf code, it opens an excel spreadsheet and creates multiple pdfs from the worksheets then I merge them using Dynamic pdf
Re: program locks up when called from another process
Support · Jul 17, 2007Hello,
Can you please send us over the Standalone application as well as the Web application code you are using to our [^a|mailto:support@cete.com|Support Team^] so that we can take a look at it?
Is the Standalone application making call to our product library or not?
Thanks,
ceTe Software Support Team
Re: program locks up when called from another process
Forum member · Jul 17, 2007I sent the code and yes the stand alone calls your library
Re: program locks up when called from another process
Support · Jul 17, 2007Hello,
This is likely a permissions issue of some sort. In your standalone application, you are saving the pdf to a local file path and then printing it using GhostScript. The web user will need to have permissions to save to the file path and print to that printer. Does the web user have these permissions?
Thanks,
ceTe Software Support Team
Re: program locks up when called from another process
Forum member · Jul 17, 2007Yes, as i said I had to go through all the permission issues when I wrote the stand alone program before I added the dynamicPDF and it was working fine
Re: program locks up when called from another process
Support · Jul 17, 2007Hello,
OK, At first glance your code looks good assuming the web user had permission to write to your folder and print to the printer. We'll set up an application based on the code you provided and see if we can recreate the issue.
Thanks,
ceTe Software Support Team
Re: program locks up when called from another process
Forum member · Jul 17, 2007Ok thanks.
Re: program locks up when called from another process
Support · Jul 18, 2007Hello,
We were able to create a sample standalone application and run it by calling it from the web application using Process.Start() method without any problem.
When drawing the PDF or merging existing PDF documents, it required absolute path for the PDF document in both cases. If relative path was specified, it resulted in permissions errors. Can you please verify if you have absolute path to the PDF documents you are merging and also absolute path specified in the Draw method and see if that solves the problem?
Thanks,
ceTe Software Support Team
Re: program locks up when called from another process
Forum member · Jul 23, 2007I am using the absolute path
Re: program locks up when called from another process
Support · Jul 23, 2007Hello,
Can you please send over the section of your code that includes the main method of your standalone application to our [^a|mailto:support@cete.com|Support Team^] so that we can take a look at it?
Thanks,
ceTe Software Support Team
Re: program locks up when called from another process
Forum member · Jul 23, 2007Actually I finally got it to work, thanks
Re: program locks up when called from another process
Forum member · Jul 25, 2007Actually it still isn't working, the stand alone works fine with dynamic pdf but it still doesn't work when called from the web app, I am using the local system account to run the program??
Re: program locks up when called from another process
Forum member · Jul 25, 2007I'm sure it must be some kind of permissions issue because is works on my local machine though
Re: program locks up when called from another process
Support · Jul 25, 2007Hello,
It does appear to be permissions related problem. Please make sure that the ASPNET user account or whichever user account you are using has Read and Write permissions on the folder where the standalone application resides and where you output the PDF document.
Thanks,
ceTe Software Support Team