This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Issue

Issue caused by the fact that K2 service account does not have access to the following directory: %ProgramData%\SourceCode\Temp

Symptoms

When attempting to create a package via Web Package & Deployment, the following error is logged: Access the path 'C:\ProgramData\SourceCode\Temp\{randomcharacters}.kspx\{guid}' is denied. Service: PackageDeploymentService

Image

Resolution

- Grant K2 service account Full Control on the "C:\ProgramData\SourceCode\Temp" folder on the destination server.

- Next clear up contents of this folder (Removing everything in the folder)

- It should be able to successfully deploy packages in the process.