Printing over COM from C# (IIS)

Hello,

I have a C# .Net application running in the IIS. From there I use the Com API to create documents in an ERP system.
I need to print these documents over the COM API and want to use PDFCreator as Printer with AutoSave.
I wrote a little test via Powershell and everything looks fine. The document is printed in the configured file folder.

But when I am making the exact same call via C# it is not working.
The COM API tells me everything is fine (I just get an int as result).
But the logs of PDFCreator show that it does not find anything to print.

In the file system I already allowed everybody to access the target folder of the pdf, the C:\…Temp\2\PDFCreator and C:\…Temp\2\PDFCreator\Spool. My application pool user is the admin, therefore it should be allowed to print.

What am I missing?

I just found something strange: I have two PDFCreator/Spool directories.  The working one is C:\Users\Administrator\AppData\Local\Temp\2\PDFCreator\Spool
And the one the COM API uses is:
C:\Users\Administrator\AppData\Local\Temp\PDFCreator\Spool

All of the documents are in there, but PDF Creator does not search there, it only searches in Temp/2.
Any ideas please?

Extended logging shows the file ist not found:
[29.04.2015 14:41:48.485]Modul-PdfStartDocPort=Start
[29.04.2015 14:41:48.486]DLL-FileVersion=0.6.0.0
[29.04.2015 14:41:48.486]Modul-GetOsInfo=Start
[29.04.2015 14:41:48.486]BuildNumber=7601
[29.04.2015 14:41:48.486]MajorVersion=6
[29.04.2015 14:41:48.486]MinorVersion=1
[29.04.2015 14:41:48.487]PlatformId=2
[29.04.2015 14:41:48.487]CSDVersion=Service Pack 1
[29.04.2015 14:41:48.487]ProductType=3
[29.04.2015 14:41:48.487]ServicePackMajor=1
[29.04.2015 14:41:48.487]ServicePackMinor=0
[29.04.2015 14:41:48.487]SuiteMask=272
[29.04.2015 14:41:48.488]Modul-GetOsInfo=End (Void)
[29.04.2015 14:41:48.488]PrinterName=PDFStandort1
[29.04.2015 14:41:48.488]JobId=4
[29.04.2015 14:41:48.488]GetClientComputer=Start
[29.04.2015 14:41:48.489]OpenPrinter=True
[29.04.2015 14:41:48.489]pjob->pMachineName=\\TEMPLATE
[29.04.2015 14:41:48.490]GetClientComputer=END
[29.04.2015 14:41:48.490]GetClientComputer=\\TEMPLATE
[29.04.2015 14:41:48.490]GetUserInfo=Start
[29.04.2015 14:41:48.491]GetUserInfo=END
[29.04.2015 14:41:48.491]UserName=Administrator
[29.04.2015 14:41:48.491]GetSessionInfo=Start
[29.04.2015 14:41:48.492]GetSessionInfo=End
[29.04.2015 14:41:48.492]SessionId=0
[29.04.2015 14:41:48.492]SessionName=Services
[29.04.2015 14:41:48.493]GetUserEnvBlock=Begin
[29.04.2015 14:41:48.494]GetUserEnvBlock=End
[29.04.2015 14:41:48.495]RegQueryValueEx failed=Das System kann die angegebene Datei nicht finden.

[29.04.2015 14:41:48.495]Modul-GetServerPath=Start
[29.04.2015 14:41:48.495]Registry value ‘Server’=not found
[29.04.2015 14:41:48.495]PDFCreatorServer=FALSE
[29.04.2015 14:41:48.496]Modul-GetUserTmpPath=Start
[29.04.2015 14:41:48.497]UserTmp=C:\Users\ADMINI~1\AppData\Local\Temp
[29.04.2015 14:41:48.497]RegOpenKeyEx failed=Das System kann die angegebene Datei nicht finden.

[29.04.2015 14:41:48.498]Modul-GetUserTmpPath=End (True)
[29.04.2015 14:41:48.498]TmpPath=C:\Users\ADMINI~1\AppData\Local\Temp\PDFCreator\Spool
[29.04.2015 14:41:48.498]Modul-GetDatFileName=Start
[29.04.2015 14:41:48.499]pDatFile=17640B2D36094D6E8818077725C7D44A.inf
[29.04.2015 14:41:48.499]Modul-GetDatFileName=End (True)
[29.04.2015 14:41:48.499]PostscriptFile=C:\Users\ADMINI~1\AppData\Local\Temp\PDFCreator\Spool\17640B2D36094D6E8818077725C7D44A.ps
[29.04.2015 14:41:48.499]PostscriptFileName=17640B2D36094D6E8818077725C7D44A.ps
[29.04.2015 14:41:48.499]DocName=Lieferschein mit Quittung, Seriennummern  1 29 04 2015 14 41 48
[29.04.2015 14:41:48.500]OpenPrinter=True
[29.04.2015 14:41:48.500]Modul-PdfStartDocPort=End (True)
[29.04.2015 14:41:48.521]Modul-CreateDatFile=Start
[29.04.2015 14:41:48.522]Modul-CreateDatFile=End (True)
[29.04.2015 14:41:48.522]StartPdfCreator=Begin
[29.04.2015 14:41:48.523]WTSQueryUserToken=Begin
[29.04.2015 14:41:48.523]WTSQueryUserToken=Es wurde versucht, auf ein Token zuzugreifen, das nicht vorhanden ist.