Symptoms
Receiving the following errors during installation of K2 4.7:
Target did not complete successfully: ControlUtil SmartFormsTester Error from controlutil output: RegisterControlTypes Failed: Error Sending BufferAn existing connection was forcibly closed by the remote host
Target did not complete successfully: Register_Control_AssetDelivery Error from controlutil output: RegisterControlTypes Failed: Error Sending BufferAn existing connection was forcibly closed by the remote host
Target did not complete successfully: Register_Control_AutoComplete Error from controlutil output: RegisterControlTypes Failed: Error Sending BufferAn existing connection was forcibly closed by the remote host
Target did not complete successfully: Register_Control_Barcode Error from controlutil output: ClearControlCache Failed: Error Sending BufferAn existing connection was forcibly closed by the remote host
Target did not complete successfully: ClearControlCache Target did not complete successfully: Management.kspx Target did not complete successfully: K2 for SharePoint 2013.kspx Package deployment timeout reached, stopping.
Target did not complete successfully: SmartForms Tester Collateral.kspx
Diagnoses
This issue can be caused by SmartObject restrictions.
Resolution
Either remove all permissions configured on SmartBox Administration and SmartObject Administration or ensure that your K2 installation and K2 service accounts have full rights on SmartBox Administration and SmartObject Administration:
** Workspace > Management Console > SmartObjects > SmartObjects Adminitration: Publish, Delete.
** Workspace > Management Console > SmartBox > Smartbox Adminitration: Create , Update , Delete.
Once permissions corrected re-run installation from the media. If this don't resolve your issue try to deploy the same packages using Package and Deployment tool - it may display you some other error message which will allow you to troubleshoot this issue further.
For example deployment issue can be caused by the fact that K2 service account does not have access to the following directory:
%ProgramData%SourceCodeTemp
You can verify if these permissions are indeed missing by means of trying to deploy one of these packages manually:
Navigate to "C:Program Files (x86)K2 blackpearlSetup" and double click one of these packages and try to deploy it, e.g. click on Management.kspx - even on preparing package stage before analysis it will throw errors indicating insufficient access rights on a file system level, which will look similar to this:
Access the path 'C:ProgramDataSourceCodeTemp{randomcharacters}.kspx{guid}' is denied. Service: PackageDeploymentService
To correct this you need to grant K2 service account Full Control on the "C:ProgramDataSourceCodeTemp" folder. Next clear up contents of this folder, run K2 blackpearl Setup Manager from installation media and select Configure. It should be able to successfully deploy packages in the process.