Symptoms
K2 Package and Deployment tool throws exception when we open any *.kspx file and processing/analyzing is started. The problem occured most likely after windows updates.
The exception which occurs is:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.Serialization.SerializationException: Member 'SessionName' was not found.
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList, MarshalMessageType CallType)
at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList, MarshalMessageType CallType)
at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteSessionCall(String TypeName, String MethodName, Objectt] Parameters)
at SourceCode.Deployment.Management.PackageDeploymentManager.RemoteSessionCall(String TypeName, String MethodName, Objectt] Parameters)
at SourceCode.Deployment.Management.PackageDeploymentManager.Send(String sessionName, SyncState state)
at SourceCode.Deployment.Management.SyncRequest.OnExecute(IServiceProvider provider)
at SourceCode.Deployment.Management.SyncRequest.Complete(IServiceProvider provider)
--- End of inner exception stack trace ---
Server stack trace:
at SourceCode.Deployment.Management.Session.EndInstruction(SyncRequest result)
at SourceCode.Deployment.Management.ClientSession.Load(Stream packageStream, Object state)
at SourceCode.Management.Controls.DeploySelectPackage.BeginUpload()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Objectt] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Objectt]and outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
Exception rethrown at 0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageDataand msgData)
at System.Func`1.EndInvoke(IAsyncResult result)
at SourceCode.Management.Controls.DeploySelectPackage.EndUpload(IAsyncResult ar)
Diagnoses
Please verify if .Net Framework 4.6 or 4.6.1 is installed as per documentation below:
https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx
As K2 blackpearl 4.6.9 does not support .Net Framework 4.6 .
http://help.k2.com/blackpearl/support-matrix_NET
Resolution
Rollback of .NET Framework should help resolve the issue.