Hi,
We are currently testing PDF generation by a web service. We have written a service in C#/.Net that calls a dll (written in Delphi) that uses the pdf-XChange 4 printer driver to generate a pdf file.
However, this does not work. The initialization of the printer is ok, but the call to StartDoc (in Windows API) fails with error code -1. GetLastError returns 0, so we are not able to get more information about the error.
We have installed our ordinary client software on the same computer, and here pdf generation works ok. In other words, it looks as the problem is related to running under IIS.
We have also tried an older version of our DLL that uses pdf-XChange 3, and this works well.
IIS version: 6.0.3790.3959
ASP.NET version: 2.0.50727
Windows version: 2003 server SP2
Hope you can help us with this problem.
Thanks,
Arnstein By
StartDoc fails when running under IIS 6
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 14
- Joined: Fri Feb 18, 2005 2:23 pm
- Location: Trondheim, Norway
- Contact:
- John - Tracker Supp
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
- Contact:
Re: StartDoc fails when running under IIS 6
Hi Arnstein,
Can you please advise if you are using our end user version or PDF-XChange Drivers SDK API for developers ?
You have posted in our End User forum - but it would appear you are using our developers SDK ...
Many thanks
Can you please advise if you are using our end user version or PDF-XChange Drivers SDK API for developers ?
You have posted in our End User forum - but it would appear you are using our developers SDK ...
Many thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Best regards
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com
-
- User
- Posts: 14
- Joined: Fri Feb 18, 2005 2:23 pm
- Location: Trondheim, Norway
- Contact:
Re: StartDoc fails when running under IIS 6
Sorry, my mistake. I am using the pdf-XChange API.
Best regards, Arnstein
Best regards, Arnstein
Last edited by DISystemer on Mon Apr 23, 2012 6:53 am, edited 1 time in total.
- Ivan - Tracker Software
- Site Admin
- Posts: 3549
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
- Contact:
Re: StartDoc fails when running under IIS 6
Can you check if the value InstallPath in the registry HKEY_LOCAL_MACHINE\Software\Tracker Software\PDF-XChange 4.0\Drivers points to the valid path and this path is available under IIS ?
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
- User
- Posts: 14
- Joined: Fri Feb 18, 2005 2:23 pm
- Location: Trondheim, Norway
- Contact:
Re: StartDoc fails when running under IIS 6
Hi, I have verified that the InstallPath value points to the correct path.
What exactly do you mean by "this path is available under IIS": Should we make a virtual directory under the site, or should the user running the web service have access to this path?
Best regards, Arnstein
What exactly do you mean by "this path is available under IIS": Should we make a virtual directory under the site, or should the user running the web service have access to this path?
Best regards, Arnstein
- Paul - Tracker Supp
- Site Admin
- Posts: 6836
- Joined: Wed Mar 25, 2009 10:37 pm
- Location: Chemainus, Canada
- Contact:
Re: StartDoc fails when running under IIS 6
Hi DISystemer,
hth
Yes - thi sis what you need to do.should the user running the web service have access to this path?
hth
Best regards
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com