Symptoms
I have deployed K2 Package and Deployment. Installation passed successfully, but when I click any link in this tool like "Deploy Package" or "Edit Package" I get error:
Could not load type 'SourceCode.ComponentModel.IDeployOptions' from assembly 'SourceCode.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d'.
Exception type:
System.TypeLoadException
Exception stack trace:
at SourceCode.Management.SnapIns.K2Management.K2ServerFarm.DeployPackage()
at Microsoft.ManagementConsole.ScopeNode.DoAction(Int32 actionId, IRequestStatus requestStatus)
at Microsoft.ManagementConsole.SnapIn.ProcessRequest(Request request)
at Microsoft.ManagementConsole.Internal.SnapInClient.Microsoft.ManagementConsole.Internal.IMessageClient.ProcessRequest(Request request)
at Microsoft.ManagementConsole.Internal.IMessageClient.ProcessRequest(Request request)
at Microsoft.ManagementConsole.Executive.RequestStatus.BeginRequest(IMessageClient messageClient, RequestInfo requestInfo)
at Microsoft.ManagementConsole.Executive.SnapInRequestOperation.ProcessRequest()
at Microsoft.ManagementConsole.Executive.Operation.OnThreadTransfer(SimpleOperationCallback callback)
Repair or full reinstallation does not help, despite it finishes with success. Because of this error we can't deploy any K2 package.
DLL file - SourceCode.ComponentModel exists in GAC na K2 blackpearl folder.
Diagnoses
We tried to gather version numbers for the following files:
SourceCode.ComponentModel
SourceCode.Deployment.Runtime
SourceCode.Runtime.Services.EnvironmentSettings
SourceCode.Runtime.Services.Forms
SourceCode.Runtime.Services.SmartObjects
SourceCode.Deployment.Assemblies
SourceCode.Runtime.PersistableObjects
In the following location:
C:Program Files (x86)K2 blackpearlHost ServerBinExtensionsRuntime
As well as the version of this dll
SourceCode.Deployment.Management.dll
C:Program Files (x86)K2 blackpearlBin
SourceCode.ComponentModel: check K2 blackpearlin andor k2 blackpearlhost serverin
SourceCode.Deployment.Runtime: check k2 blackpearlhost serverinhostedservers
Check versions of files in k2 blackpearlinsnapins
All file versions seemed correct so far, but we didn't get feedback on the last 3.
Resolution
Customer decided to create a new environment and reinstall everything from scratch since they had a deadline to meet.