Skip to main content
Nintex Community Menu Bar

It is currently a brand new non-domain installation of K2 Five 5.5.
When K2 Five 5.5 was installed to the "App Framework Core.kspx" progress, an error occurred, which prevented the installation from continuing.
From the error log, it seems to be related to session authentication, but it is not an error at the beginning.
Try to implement other related solutions, but did not succeed:
KB002419
https://community.nintex.com/t5/Technical-Issues/Known-Issue-App-Framework-package-fails-during-upgrade/ta-p/123937
KBT146714
https://community.nintex.com/t5/How-To/quot-Authentication-Required-for-Session-quot-error-appears-on-P/ta-p/125090
I tried to manually install "App Framework Core.kspx" using a different connection string or a different Windows account, and the errors I got are as follows:
(Execute K2 Package and Deployment tool deployment on other computers, and get the same error)


Runas local Administrator:

D:K2K2 Five (5.5) (5.0006.1000.0)Installation>DeployPackage "D:Program FilesK2\SetupApp Framework Core.kspx" "Integrated=True;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=EC2AMAZ-8LPEL2S;Port=5555"
DeployPackage Utility
Add SnapIn
Loaded P&D snapin
Create runspace
FileName: D:Program FilesK2\SetupApp Framework Core.kspx
ConnectionString: Integrated=True;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=EC2AMAZ-8LPEL2S;Port=5555
Run command: Create command: Deploy-Package 'D:Program FilesK2\SetupApp Framework Core.kspx' -ConnectionString 'Integrated=True;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=EC2AMAZ-8LPEL2S;Port=5555' -NoAnalyze with config file: ''
Start Invoke Powershell...
PowerShell object state changed: Running
Warning: No configuration file found for this Deployment Package.
Error: SourceCode.Hosting.Exceptions.SCException: 30013 Administrator (K2SQL:EC2AMAZ-8LPEL2SAdministrator) is not a member of the Package and Deployment role and/or does not have Export rights on the workflow server.
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] NullList, MarshalMessageType CallType)
at SourceCode.Deployment.Management.PackageDeploymentManager.ValidateUserRights()
at SourceCode.Deployment.PowerShell.DeployPackage.ProcessRecord()
activity: status description
Complete: Done!
PowerShell object state changed: Completed
Powershell exited. State: Completed
Deploy package utility done.


Runas Other local Account:

Deploying items to server: Deploying 43 of 46
Deploying items to server: Deploying 44 of 46
Deploying items to server: Deploying 45 of 46
Deploying items to server: Deploying 46 of 46
Done!: Deploying 46 of 46
Done!: Done!
Error: System.Reflection.TargetInvocationException: C:ProgramDataTemp87a741db8c664a6394b5ba8e256b94c0Deploymentefc946bd7fae4dc7a168454e48cb6c7a.msbuild(69,5) : error MSB4018: The "SourceCode.DeploymentTasks.ExportProcessTask" task failed unexpectedly.
System.Exception: Authentication required for session 587C867028DA7A30E319992172222B2D
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] 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.<ExecuteInstantiatedTask>d__26.MoveNext() ---> System.Exception:
C:ProgramDataTemp87a741db8c664a6394b5ba8e256b94c0Deploymentefc946bd7fae4dc7a168454e48cb6c7a.msbuild(69,5) : error MSB4018: The "SourceCode.DeploymentTasks.ExportProcessTask" task failed unexpectedly.
System.Exception: Authentication required for session 587C867028DA7A30E319992172222B2D
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] 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.<ExecuteInstantiatedTask>d__26.MoveNext()

at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.HandleDeploymentResults(DeploymentResults results, String error)
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.DeployWorker(Object param)
--- End of inner exception stack trace ---
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.Deploy(String[] parts, String kprojDir, String kprojName, String kprxDir, String kprxName, String targetFramework, IEnumerable`1 refs, String procFolder)
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.IsolatedDeploy(Action`1 data, ComplexType ct, IEnumerable`1 refs, ISecurityManager securityManager, IServiceMarshalling serviceMarshalling, IEnvironment environment)
at SourceCode.Runtime.Services.Workflow.WorkflowDeploymentService.Deploy(IDeploymentContext context)
at SourceCode.Deployment.Runtime.ServerSession.DoDeployment(Boolean deploymentLoggingEnabled, ISessionManager sessionManager, Int32 sessionId, IComparisonResults comparisonResults, DeploymentPlan deploymentPlan, Dictionary`2 collators, Boolean haltOnError, Boolean deploymentInProgress, IDeployOptions deployOptions, Boolean noAnalyze, IServiceProvider serviceProvider, Action`1 expireItemCache, Action`2 setDeploymentProgressCount, Action incrementDeploymentProgress, Stopwatch timer)
Done!: Done!
Complete: Done!
PowerShell object state changed: Completed
Powershell exited. State: Completed
Deploy package utility done.

 

OR use other connection string:

DeployPackage Utility
Add SnapIn
Loaded P&D snapin
Create runspace
FileName: D:Program FilesK2\SetupApp Framework Core.kspx
ConnectionString: Integrated=False;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=EC2AMAZ-8LPEL2S;Port=5555;SecurityLabelName=K2SQL;UserID=K2Admin;Password=(*passwd*)
Run command: Create command: Deploy-Package 'D:Program FilesK2\SetupApp Framework Core.kspx' -ConnectionString 'Integrated=False;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=EC2AMAZ-8LPEL2S;Port=5555;SecurityLabelName=K2SQL;UserID=K2Admin;Password=(*passwd*)' -NoAnalyze with config file: ''
Start Invoke Powershell...
PowerShell object state changed: Running
Warning: No configuration file found for this Deployment Package.
Error: SourceCode.Hosting.Exceptions.AuthenticationException: Primary Credentials Not Authenticated. Session Not Authenticated.
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList, MarshalMessageType CallType)
at SourceCode.Deployment.Management.PackageDeploymentManager.ValidateUserRights()
at SourceCode.Deployment.PowerShell.DeployPackage.ProcessRecord()
activity: status description
Complete: Done!
PowerShell object state changed: Completed
Powershell exited. State: Completed
Deploy package utility done.

 

Use K2 Package and Deployment:

System.Reflection.TargetInvocationException: C:ProgramDataTemp9cdf0b0f83354cd5be0476b5979575efDeploymentc064988220a44c9ab3ed3a1ee33d4b64.msbuild(69,5) : error MSB4018: The "SourceCode.DeploymentTasks.ExportProcessTask" task failed unexpectedly.
System.Exception: Authentication required for session E505A4741CC791EE948C70BA048018B3
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectc] Parameters, Booleana] 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.<ExecuteInstantiatedTask>d__26.MoveNext() ---> System.Exception:
C:ProgramDataTemp9cdf0b0f83354cd5be0476b5979575efDeploymentc064988220a44c9ab3ed3a1ee33d4b64.msbuild(69,5) : error MSB4018: The "SourceCode.DeploymentTasks.ExportProcessTask" task failed unexpectedly.
System.Exception: Authentication required for session E505A4741CC791EE948C70BA048018B3
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectc] Parameters, Booleana] 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.<ExecuteInstantiatedTask>d__26.MoveNext()

at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.HandleDeploymentResults(DeploymentResults results, String error)
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.DeployWorker(Object param)
--- End of inner exception stack trace ---
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.Deploy(Stringn] parts, String kprojDir, String kprojName, String kprxDir, String kprxName, String targetFramework, IEnumerable`1 refs, String procFolder)
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.IsolatedDeploy(Action`1 data, ComplexType ct, IEnumerable`1 refs, ISecurityManager securityManager, IServiceMarshalling serviceMarshalling, IEnvironment environment)
at SourceCode.Runtime.Services.Workflow.WorkflowDeploymentService.Deploy(IDeploymentContext context)
at SourceCode.Deployment.Runtime.ServerSession.DoDeployment(Boolean deploymentLoggingEnabled, ISessionManager sessionManager, Int32 sessionId, IComparisonResults comparisonResults, DeploymentPlan deploymentPlan, Dictionary`2 collators, Boolean haltOnError, Boolean deploymentInProgress, IDeployOptions deployOptions, Boolean noAnalyze, IServiceProvider serviceProvider, Action`1 expireItemCache, Action`2 setDeploymentProgressCount, Action incrementDeploymentProgress, Stopwatch timer)
 

Hi, I am not sure if this is still an issue but I would recommend speaking to your account manager to put you in touch with Professional Services to assist with your installation.

Hi,



I have the same isssue.



Have you resolve this issue?



 



Regards


Reply