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.
After deploying a K2 Workflow package, the following error appears:
"The "SourceCode.DeploymentTasks.ExportProcessTask" task failed unexpectedly. System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 10.200.254.253:5555 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port) at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder) at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder) at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString) 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()"
This issue could be caused by the Environment library fields pointing to the wrong server.
Check the 'Workflow Server' and 'SmartObject Server' fields in K2 Management, and ensure that the Host value is pointing to the correct server.