First of all I would like to explain the pipeline and how the data il flowing in my scenario.
Components:
- ASP.NET Application (IIS v8.5)
- WCF Service Hosted on a Windows Service
- Console Application
The ASP.NET Application sends the file path to the Web Service which in turn starts the console and passes the path as a command line argument. The console application should then proceed to print the PDF File for the given path.
When the console is run as a standalone the document is printed without any issues, but when the process is started by the windows service the application fails to print (Important to note that application does not crash either).
The Windows service was modified to Log On as the machine's Admin but the document is still not printed. The program was also tested in a Service without a WCF Service hosted in it, but the document did not print either.
It is also important to note that the Application Pool identity linked to the ASP.NET Application was also changed to reflect the machine's admin.
The console has no UI and user input and does not prompt the user in any way, but still fails to print when started from the service.
Has anyone encountered this issue and managed to solve it?