Skip to main content


 

Symptoms

 


Unable to deploy anything from Visual Studio
 

 

Diagnoses

 


When deploying to K2 server from client machine using visual studio we are getting following error message.

Error 1 The "SourceCode.DeploymentTasks.ExportProcessTask" task failed unexpectedly.
System.Exception: Authentication required for session 48BF241467C973FB9E60B2410A092EBD
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectb] Parameters, Booleano] NullList, MarshalMessageType CallType)
at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String MethodName, Objectb] Parameters, Booleano] NullList, MarshalMessageType CallType)
at SourceCode.Hosting.Client.ManagementAPI.GetServerFrameworkVersion()
at SourceCode.DeploymentTasks.ExportProcessTask.CheckServerFrameworkSupport(Version targetFramework)
at SourceCode.DeploymentTasks.ExportProcessTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext() C:developmentIWMS - GITWorkflowsobjDebugDeploymentIWMS Processes.msbuild 190 6 IWMS Processes
 

 

Resolution

To resolve the issue, the following steps were performed.
1. Navigate to C:ProgramDataSourceCode (ProgramData is a hidden folder) on your local machine that has K2 thick client tools installed.
2. Open up the configurationmanager.config
3. Check the values under the tag, there might be an incorrect entry (i.e. Server name is wrong), change server name to use the IP address 172.xx.xx.xx.
4. Find the UserBrowserServer section, and add the following connection string
<settings>
<add key="UserBrowserServer" value=" Integrated=True;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=server_ip_address;Port=5555;SecurityLabelName=K2;UserID=account_name;Password=password;WindowsDomain=Domain_name
" />
</settings>
5. Edit the Workflow Management Server(s) from K2 Object Browser > Environment > Workflow Management Server and modify the connection string to use the K2 server’s ip address.

 

 



 
Be the first to reply!

Reply