Using the K2 Designer for SharePoint link in SharePoint Central Administration to reconfigure K2 Designer for SharePoint does not update the Application Pool and account for the MOSS site automatically. This results in an error when a user attempts to deploy a process from K2 Designer for SharePoint thereafter.

Important: This issue is known to affect Windows Server 2003 environments, Windows Server 2008 environments respond to the change as expected.

Error Scenario

K2 blackpearl 4.5 (4.10060.1.0) is installed and configured with the MOSS site using the same application pool as the K2 Designer for SharePoint. Users are able to create and deploy processes at this time. When a user attempts to use the K2 Designer for SharePoint link in SharePoint Central Administration to reconfigure K2 Designer for SharePoint, changing the Application Pool account and then later attempts to deploy a process, an error is thrown.

Error Messages

The following error message or similar error message may be expected when a user performs the steps described in the error scenario

The "CompileWorkflowTask" task failed unexpectedly.System.UnauthorizedAccessException: Access to the path ’C:\Documents and Settings\Default User\Local Settings\Temp\pcebeafn.tmp’ is System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)
at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension)
at System.Workflow.ComponentModel.Compiler.CompileWorkflowTask.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)

Error Resolution

This Hotfix is contained within the latest K2 Update. Install the update package to resolve the error.