Is it possible to use XChange Driver API with IIS?

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
sjrogers
User
Posts: 10
Joined: Tue Mar 03, 2015 8:38 pm

Is it possible to use XChange Driver API with IIS?

Post by sjrogers »

Is it possible to use the XChange Drivers API with an ASP.NET app with IIS (Internet Information Server)?

I have tried a variety of things, but no success. I don't appear to get any errors from the Drivers API, but I don't get a .PDF created either.

I am just curious if this is possible or if anyone else has had any success doing this?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17948
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Is it possible to use XChange Driver API with IIS?

Post by Tracker Supp-Stefan »

Hello sjrogers,

Can you please take a look here and see if it help:
https://forum.pdf-xchange.com/ ... 43&t=13258

Regards,
Stefan
sjrogers
User
Posts: 10
Joined: Tue Mar 03, 2015 8:38 pm

Re: Is it possible to use XChange Driver API with IIS?

Post by sjrogers »

I have read the references thread about using with IIS 6. I am using IIS 7.5, but the same principles should apply.

I have verified the path containing the Tracker software does have access (read and write) by the App Pool User. I have tried many variations and the only thing I have gotten to work to any degree so far is that if I make the App Pool User the Administrator account (which is probably not possible in production), I do get a .pdf file created, but it is being created at c:\windows\system32 and is always called untitled.pdf. I discovered this using ProcMon. If I run the dll containing my app in a test harness (not run by IIS), it gets placed in the correct path that is specified in the code.

Obviously, there is still some permission or something else that needs to get changed for this to work correctly. I don't know how the app is communicating the output file path to the XChange Driver, but since this is not happening, maybe this is a clue as to what is not getting set.

Any help will be greatly appreciated.
sjrogers
User
Posts: 10
Joined: Tue Mar 03, 2015 8:38 pm

Re: Is it possible to use XChange Driver API with IIS?

Post by sjrogers »

Are there any further suggestions on how to get this running with IIS, or does no response mean that there is no solution?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Is it possible to use XChange Driver API with IIS?

Post by Ivan - Tracker Software »

You DLL works as a service? If yes, can you please try to allow this service to interact with desktop?
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.
sjrogers
User
Posts: 10
Joined: Tue Mar 03, 2015 8:38 pm

Re: Is it possible to use XChange Driver API with IIS?

Post by sjrogers »

The .dll works with ASP.NET and IIS. The .dll is working fine with the exception that XChange Drives doesn't work correctly. I have added "Allow service to interact with desktop" to both the W3SVC and the IISAMIN services. This makes no difference as the pdf is still created in the c:\windows\system32 directory and always named untitled.pdf. Is there something else that needs to be given this permission?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Is it possible to use XChange Driver API with IIS?

Post by Ivan - Tracker Software »

Can you provide me a sample ASP.NET project I can test on my side?
Being honest I'm not ASP or IIS guru, so I would need some help from you to reproduce the issue on my side first.
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.
Post Reply