StartDoc fails when running under IIS 6

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
DISystemer
User
Posts: 14
Joined: Fri Feb 18, 2005 2:23 pm
Location: Trondheim, Norway
Contact:

StartDoc fails when running under IIS 6

Post by DISystemer »

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
User avatar
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

Post by John - Tracker Supp »

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
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
DISystemer
User
Posts: 14
Joined: Fri Feb 18, 2005 2:23 pm
Location: Trondheim, Norway
Contact:

Re: StartDoc fails when running under IIS 6

Post by DISystemer »

Sorry, my mistake. I am using the pdf-XChange API.

Best regards, Arnstein
Last edited by DISystemer on Mon Apr 23, 2012 6:53 am, edited 1 time in total.
User avatar
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

Post by Ivan - Tracker Software »

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.
DISystemer
User
Posts: 14
Joined: Fri Feb 18, 2005 2:23 pm
Location: Trondheim, Norway
Contact:

Re: StartDoc fails when running under IIS 6

Post by DISystemer »

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
User avatar
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

Post by Paul - Tracker Supp »

Hi DISystemer,
should the user running the web service have access to this path?
Yes - thi sis what you need to do.

hth
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Post Reply