ISSUE: K212 Error - Access to the Path Denied & Process Crashing due to Temp Folder at Capacity
Error: “Access to the path ______ is denied”
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access to the path '\\BOARD-mgmt-06\ROETestShare\T4_FILE_RECORD_20220107-050015_1.DAT' is denied.
Solution:
These error messages usually occur when trying to run a process (Example: OMERSNFT or T4) and typically mean that the temporary folder is at capacity and needs to be purged.
Below are some steps to remedy;
- Delete any .tmp & .csv files in C:\windows\system32
- If service running under a localsystem account, Delete any files in c:\windows\serviceprofiles\localservice\appdata\local\temp c:\windows\serviceprofiles\localservice\appdata\roaming\temp
- You may need to start at the localservice and continue with administrator consent and Appdata is hidden so you need to type to get to the folder first
- If service running under a named service account. Delete any files in c:\users\<servicename>\AppData\Local\Temp and c:\users\<servicename>\AppData\Roaming\
- You many need to step through and continue with administrator consent and AppData is hidden so you will need to type the name in the address bar
- C:\windows\system32\spool\PRINTERS – remove everything in this folder
- Restart the APP server at the operating system level