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

K2 Update Manager shows that an error occurred on the 'K2 Package and Deployment' stage.
Image

Symptoms

The following errors were recorded in the Installer Trace generated:

Logged Error: Could not install file: C:\Program Files (x86)\K2 blackpearl\\Bin\Snapins\SourceCode.Management.Controls.dll

Logged Error: Exception: System.IO.IOException: The process cannot access the file 'C:\Program Files (x86)\K2 blackpearl\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.InstallFile.ExtractFile(String fullPath, IInstallActionWithZipData action, Int32 retryCount)
at SourceCode.Install.Package.Actions.InstallFile.ExtractFile(String fullPath, IInstallActionWithZipData action, Int32 retryCount)
at SourceCode.Install.Package.Actions.InstallFile.ExtractFile(String fullPath, IInstallActionWithZipData action, Int32 retryCount)
at SourceCode.Install.Package.Actions.InstallFile.ExtractFile(String fullPath, IInstallActionWithZipData action, Int32 retryCount)
at SourceCode.Install.Package.Actions.InstallFile.ExtractFile(String fullPath, IInstallActionWithZipData action, Int32 retryCount)
at SourceCode.Install.Package.Actions.InstallFile.ExtractFile(String fullPath, IInstallActionWithZipData action, Int32 retryCount)
at SourceCode.Install.Package.Actions.InstallFile.Install(ITarget target, InstallFile installFile)

Logged Error: Target did not complete successfully: program files\K2 BlackPearl\Bin\Snapins\SourceCode.Management.Controls.dll

Resolution

Ensure that MMC is not running in the background while installing the CU on the server.