Hello
I have a program that is running as a service.
The program generates some print, that is to be saved using a PDFCreator-printer associated with an autosave-profile.
When running the program from the desktop everything works as expected, but when running through the service, no PDF-file is created.
The _pdfcmonLog.txt looks like this for the servicejob:
[20.04.2015 15:34:03.465]-------------------- = --------------------
[20.04.2015 15:34:03.467]Modul-PdfStartDocPort=Start
[20.04.2015 15:34:03.470]DLL-FileVersion=0.6.0.0
[20.04.2015 15:34:03.473]Modul-GetOsInfo=Start
[20.04.2015 15:34:03.476]BuildNumber=7601
[20.04.2015 15:34:03.479]MajorVersion=6
[20.04.2015 15:34:03.481]MinorVersion=1
[20.04.2015 15:34:03.484]PlatformId=2
[20.04.2015 15:34:03.487]CSDVersion=Service Pack 1
[20.04.2015 15:34:03.496]ProductType=3
[20.04.2015 15:34:03.499]ServicePackMajor=1
[20.04.2015 15:34:03.502]ServicePackMinor=0
[20.04.2015 15:34:03.505]SuiteMask=16
[20.04.2015 15:34:03.508]Modul-GetOsInfo=End (Void)
[20.04.2015 15:34:03.512]PrinterName=P2950-PDFCreator
[20.04.2015 15:34:03.519]JobId=29
[20.04.2015 15:34:03.523]GetClientComputer=Start
[20.04.2015 15:34:03.527]OpenPrinter=True
[20.04.2015 15:34:03.530]pjob->pMachineName=\\UDVSRV02
[20.04.2015 15:34:03.534]GetClientComputer=END
[20.04.2015 15:34:03.538]GetClientComputer=\\UDVSRV02
[20.04.2015 15:34:03.541]GetUserInfo=Start
[20.04.2015 15:34:03.545]GetUserInfo=END
[20.04.2015 15:34:03.549]UserName=smo
[20.04.2015 15:34:03.554]GetSessionInfo=Start
[20.04.2015 15:34:03.558]GetSessionInfo=End
[20.04.2015 15:34:03.562]SessionId=0
[20.04.2015 15:34:03.566]SessionName=Services
[20.04.2015 15:34:03.571]GetUserEnvBlock=Begin
[20.04.2015 15:34:03.576]GetUserEnvBlock=End
[20.04.2015 15:34:03.580]RegQueryValueEx failed=The system cannot find the file specified.
[20.04.2015 15:34:03.583]Modul-GetServerPath=Start
[20.04.2015 15:34:03.588]Registry value ‘Server’=not found
[20.04.2015 15:34:03.592]PDFCreatorServer=FALSE
[20.04.2015 15:34:03.596]Modul-GetUserTmpPath=Start
[20.04.2015 15:34:03.602]UserTmp=C:\Users\smo\AppData\Local\Temp
[20.04.2015 15:34:03.606]RegOpenKeyEx failed=The system cannot find the file specified.
[20.04.2015 15:34:03.618]Modul-GetUserTmpPath=End (True)
[20.04.2015 15:34:03.623]TmpPath=C:\Users\smo\AppData\Local\Temp\PDFCreator\Spool
[20.04.2015 15:34:03.627]Modul-GetDatFileName=Start
[20.04.2015 15:34:03.632]pDatFile=6F7E9CFD3E8746C6847C416EAB4AF760.inf
[20.04.2015 15:34:03.637]Modul-GetDatFileName=End (True)
[20.04.2015 15:34:03.642]PostscriptFile=C:\Users\smo\AppData\Local\Temp\PDFCreator\Spool\6F7E9CFD3E8746C6847C416EAB4AF760.ps
[20.04.2015 15:34:03.652]PostscriptFileName=6F7E9CFD3E8746C6847C416EAB4AF760.ps
[20.04.2015 15:34:03.658]DocName=LIS010_001
[20.04.2015 15:34:03.663]OpenPrinter=True
[20.04.2015 15:34:03.667]Modul-PdfStartDocPort=End (True)
[20.04.2015 15:34:03.723]Modul-CreateDatFile=Start
[20.04.2015 15:34:03.733]Modul-CreateDatFile=End (True)
[20.04.2015 15:34:03.739]StartPdfCreator=Begin
[20.04.2015 15:34:03.745]WTSQueryUserToken=Begin
[20.04.2015 15:34:03.751]WTSQueryUserToken=An attempt was made to reference a token that does not exist.