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

When applying the K2 Five FixPack, you may run into this issue where the update completes, but with errors:

Symptoms

After reviewing the InstallerTrace log the following error was found:

14:07:48:>> InstallFile.Install: Logged Error: Could not install file: C:\Program Files\K2\\Bin\Snapins\SourceCode.Management.Controls.dll
14:07:48:>> InstallFile.Install: Logged Error: Exception: System.IO.IOException: The process cannot access the file 'C:\Program Files\K2\Bin\Snapins\SourceCode.Management.Controls.dll' because it is being used by another process.
   at 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, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at SourceCode.Install.Package.Actions.IO.InstallFile.ExtractFile(String fullPath, MemoryStream stream, Int32 retryCount)
   at SourceCode.Install.Package.Actions.IO.InstallFile.ExtractFile(String fullPath, MemoryStream stream, Int32 retryCount)
   at SourceCode.Install.Package.Actions.IO.InstallFile.ExtractFile(String fullPath, MemoryStream stream, Int32 retryCount)
   at SourceCode.Install.Package.Actions.IO.InstallFile.ExtractFile(String fullPath, MemoryStream stream, Int32 retryCount)
   at SourceCode.Install.Package.Actions.IO.InstallFile.ExtractFile(String fullPath, MemoryStream stream, Int32 retryCount)
   at SourceCode.Install.Package.Actions.IO.InstallFile.ExtractFile(String fullPath, MemoryStream stream, Int32 retryCount)
   at SourceCode.Install.Package.Actions.IO.InstallFile.Install(ITarget target, InstallFile installFile)

Troubleshooting Steps

This issue is caused when a running instance of the Package and Deployment tool is present.

To resolve this, close the Package and Deployment tool, and rerun the FixPack.