System.UnauthorizedAccessException

Hi, I’m using Autodesk Inventor in combination with a vba macro to create pdf documents.

This
is done by iterating (fast) through all the files and sending them one
by one to the PDFCreator printer. The printer is set up to use autosave
in a folder.

I didn’t had this error while using PDFCreator 1.7.3

regards,
Klaas De Smedt



Error Report for PDFCreator v2.0.1.714

Exception:
System.UnauthorizedAccessException: Toegang tot het pad is geweigerd.
   bij System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
  
bij System.IO.Pipes.NamedPipeServerStream.Create(String fullPipeName,
PipeDirection direction, Int32 maxNumberOfServerInstances,
PipeTransmissionMode transmissionMode, PipeOptions options, Int32
inBufferSize, Int32 outBufferSize, PipeAccessRights rights,
SECURITY_ATTRIBUTES secAttrs)
   bij
System.IO.Pipes.NamedPipeServerStream…ctor(String pipeName,
PipeDirection direction, Int32 maxNumberOfServerInstances,
PipeTransmissionMode transmissionMode, PipeOptions options, Int32
inBufferSize, Int32 outBufferSize, PipeSecurity pipeSecurity,
HandleInheritability inheritability, PipeAccessRights
additionalAccessRights)
   bij
System.IO.Pipes.NamedPipeServerStream…ctor(String pipeName,
PipeDirection direction, Int32 maxNumberOfServerInstances,
PipeTransmissionMode transmissionMode, PipeOptions options, Int32
inBufferSize, Int32 outBufferSize, PipeSecurity pipeSecurity)
   bij pdfforge.PDFCreator.Communication.PipeServer.ServerThread()
  
bij System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
   bij
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bij System.Threading.ThreadHelper.ThreadStart()

Environment:
Microsoft Windows NT 6.1.7601 Service Pack 1

Environment variables:
SESSIONNAME=Console
ProgramFiles(x86)=C:\Program Files (x86)
UGII_3DCONNEXION_LIBRARY=%UGII_BASE_DIR%\ugalliance\vendor\startup\3DxNX.dll
ProgramW6432=C:\Program Files
ILLDIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
OnlineServices=Online Services
PROCESSOR_ARCHITECTURE=AMD64
Path=%COSMOSM%;C:\Program
Files (x86)\VIDIA
Corporation\PhysX\Common;%CommonProgramFiles%\Microsoft Shared\Windows
Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program
Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth
Software\syswow64;C:\Program Files (x86)\Common Files\Roxio
Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio
Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio
Shared\OEM\12.0\DLLShared\;C:\Program Files
(x86)\Roxio\OEM\AudioCore\;C:\Program Files
(x86)\Intel\Services\IPT\;C:\Program Files\Intel\WiFi\bin\;C:\Program
Files\Common Files\Intel\WirelessCommon\;C:\Program Files
(x86)\Java\jre7\bin
COMPUTERNAME=ACE-01-0811
HOMEPATH=\Users\klaas.de.smedt.DENYS-MST
PTSMInstallPath_X86=c:\Program Files (x86)\Hewlett-Packard\HP ProtectTools Security Manager\
PROCESSOR_REVISION=2a07
TEMP=C:\Users\KLAASD~1.DEN\AppData\Local\Temp
USERPROFILE=C:\Users\klaas.de.smedt.DENYS-MST
LOGONSERVER=\\DENYS-DC05
USERNAME=klaas.de.smedt
SystemRoot=C:\windows
FLEXLM_TIMEOUT=5000000
USERDNSDOMAIN=DENYS.MST
FP_NO_HOST_CHECK=NO
CM2013DIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
CommonProgramFiles=C:\Program Files\Common Files
CM2015DIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
ProgramData=C:\ProgramData
EMC_AUTOPLAY=C:\Program Files (x86)\Common Files\Roxio Shared\OEM\
CM2014DIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
SESSIONID=1
PCBRAND=w
CommonProgramW6432=C:\Program Files\Common Files
TMP=C:\Users\KLAASD~1.DEN\AppData\Local\Temp
ILBDIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
OMP_NUM_THREADS=8
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
HOMEDRIVE=C:
windir=C:\windows
SystemDrive=C:
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
ProgramFiles=C:\Program Files
ComSpec=C:\windows\system32\cmd.exe
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
ALLUSERSPROFILE=C:\ProgramData
ADSKFLEX_LICENSE_FILE=@DC-HASSELT;@192.168.21.1;
PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
Platform=BNB
APPDATA=C:\Users\klaas.de.smedt.DENYS-MST\AppData\Roaming
USERDOMAIN=DENYS-MST
PROCESSOR_LEVEL=6
LOCALAPPDATA=C:\Users\klaas.de.smedt.DENYS-MST\AppData\Local
BURN_AUTOPLAY=C:\Program Files (x86)\Roxio\Roxio Burn\
CM2012DIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
PUBLIC=C:\Users\Public
SESSION_ID=1

And an other crash:

Error Report for PDFCreator v2.0.1.714

Exception:
System.UnauthorizedAccessException: Toegang tot het pad is geweigerd.
   bij System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   bij System.IO.Pipes.NamedPipeServerStream.Create(String fullPipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, PipeAccessRights rights, SECURITY_ATTRIBUTES secAttrs)
   bij System.IO.Pipes.NamedPipeServerStream…ctor(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, PipeSecurity pipeSecurity, HandleInheritability inheritability, PipeAccessRights additionalAccessRights)
   bij System.IO.Pipes.NamedPipeServerStream…ctor(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, PipeSecurity pipeSecurity)
   bij pdfforge.PDFCreator.Communication.PipeServer.ServerThread()
   bij System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bij System.Threading.ThreadHelper.ThreadStart()

Environment:
Microsoft Windows NT 6.1.7601 Service Pack 1

Environment variables:
SESSIONNAME=Console
ProgramFiles(x86)=C:\Program Files (x86)
UGII_3DCONNEXION_LIBRARY=%UGII_BASE_DIR%\ugalliance\vendor\startup\3DxNX.dll
ProgramW6432=C:\Program Files
ILLDIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
OnlineServices=Online Services
PROCESSOR_ARCHITECTURE=AMD64
Path=%COSMOSM%;C:\Program Files (x86)\VIDIA Corporation\PhysX\Common;%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Java\jre7\bin
COMPUTERNAME=ACE-01-0811
HOMEPATH=\Users\klaas.de.smedt.DENYS-MST
PTSMInstallPath_X86=c:\Program Files (x86)\Hewlett-Packard\HP ProtectTools Security Manager\
PROCESSOR_REVISION=2a07
TEMP=C:\Users\KLAASD~1.DEN\AppData\Local\Temp
USERPROFILE=C:\Users\klaas.de.smedt.DENYS-MST
LOGONSERVER=\\DENYS-DC05
USERNAME=klaas.de.smedt
SystemRoot=C:\windows
FLEXLM_TIMEOUT=5000000
USERDNSDOMAIN=DENYS.MST
FP_NO_HOST_CHECK=NO
CM2013DIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
CommonProgramFiles=C:\Program Files\Common Files
CM2015DIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
ProgramData=C:\ProgramData
EMC_AUTOPLAY=C:\Program Files (x86)\Common Files\Roxio Shared\OEM\
CM2014DIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
SESSIONID=1
PCBRAND=w
CommonProgramW6432=C:\Program Files\Common Files
TMP=C:\Users\KLAASD~1.DEN\AppData\Local\Temp
ILBDIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
OMP_NUM_THREADS=8
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
HOMEDRIVE=C:
windir=C:\windows
SystemDrive=C:
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
ProgramFiles=C:\Program Files
ComSpec=C:\windows\system32\cmd.exe
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
ALLUSERSPROFILE=C:\ProgramData
ADSKFLEX_LICENSE_FILE=@DC-HASSELT;@192.168.21.1;
PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
Platform=BNB
APPDATA=C:\Users\klaas.de.smedt.DENYS-MST\AppData\Roaming
USERDOMAIN=DENYS-MST
PROCESSOR_LEVEL=6
LOCALAPPDATA=C:\Users\klaas.de.smedt.DENYS-MST\AppData\Local
BURN_AUTOPLAY=C:\Program Files (x86)\Roxio\Roxio Burn\
CM2012DIR=C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\
VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
PUBLIC=C:\Users\Public
SESSION_ID=1

I just got this error when trying to print 5 pieces of mail at the same time from Thunderbird. it sends them as separate print files, and then I use PDFCreator to merge them into a single file. I got two of these errors, but the mail seems to have printed fine.


Error Report for PDFCreator v2.0.1.714

Exception:
System.UnauthorizedAccessException: Access to the path is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Pipes.NamedPipeServerStream.Create(String fullPipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, PipeAccessRights rights, SECURITY_ATTRIBUTES secAttrs)
   at System.IO.Pipes.NamedPipeServerStream…ctor(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, PipeSecurity pipeSecurity, HandleInheritability inheritability, PipeAccessRights additionalAccessRights)
   at System.IO.Pipes.NamedPipeServerStream…ctor(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, PipeSecurity pipeSecurity)
   at pdfforge.PDFCreator.Communication.PipeServer.ServerThread()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Environment:
Microsoft Windows NT 6.1.7601 Service Pack 1

Environment variables:
SystemDrive=C:
ProgramFiles(x86)=C:\Program Files (x86)
Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files (x86)\Windows Live\Shared
ProgramW6432=C:\Program Files
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
TMP=C:\Users\bill\AppData\Local\Temp
PROCESSOR_ARCHITECTURE=AMD64
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
SESSION_ID=2
PROCESSOR_REVISION=170a
TEMP=C:\Users\bill\AppData\Local\Temp
USERPROFILE=C:\Users\bill
LOGONSERVER=\\BASEMENT-HP
USERNAME=bill
SystemRoot=C:\Windows
FP_NO_HOST_CHECK=NO
CommonProgramFiles=C:\Program Files\Common Files
PROCESSOR_LEVEL=6
ProgramData=C:\ProgramData
HOMEPATH=\Users\bill
SESSIONID=2
PCBRAND=Pavilion
CommonProgramW6432=C:\Program Files\Common Files
CW_UPDATE=Y
SESSIONNAME=RDP-Tcp#1
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
HOMEDRIVE=C:
windir=C:\Windows
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
COMPUTERNAME=BASEMENT-HP
ProgramFiles=C:\Program Files
ComSpec=C:\Windows\system32\cmd.exe
ALLUSERSPROFILE=C:\ProgramData
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
Platform=HPD
APPDATA=C:\Users\bill\AppData\Roaming
USERDOMAIN=Basement-HP
OnlineServices=Online Services
asl.log=Destination=file;OnFirstLog=command,environment,parent
LOCALAPPDATA=C:\Users\bill\AppData\Local
CHROME_ETW_LOGGING=1
iHA_Version=1.00.00
CLIENTNAME=ADMINIB-C728780
PUBLIC=C:\Users\Public

It seems to occur when you also have the folder open in the file explorer. Probably something to do with thumbnails