Symptoms
We are currently in our UAT process and our test users are unable to access SmartForms we have deployed to our stage environment SharePoint site. They receive the following error message when the SmartForm loads:
Server Error
Primary Credentials Not Authenticated
More Details
Exception Details:
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList, MarshalMessageType CallType)
at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteSessionCall(String TypeName, String MethodName, Objectt] Parameters, Booleann] NullList)
at SourceCode.Forms.Management.FormsManager.DoSessionCall(String method, Objectt] parameters, Booleann] nullList)
at SourceCode.Forms.Management.FormsManager.GetControlTypesInternal()
at SourceCode.Forms.Management.FormsManager.GetControlTypes()
at SourceCode.Forms.AppFramework.BundlingUtility.CreateControlBundles()
at SourceCode.Forms.AppFramework.BundlingModule.PostAuthenticateRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Booleanand completedSynchronously)
Diagnoses
If there are any additional domains involve (such that users from these domain will need to access K2 resources, Smartforms, Workflows) the domain will need to be added using K2 Workspace similarly to documentation:
http://help.k2.com/onlinehelp/k2blackpearl/icg/current/webframe.html_after_addingmultipledomains.html
Resolution
Adding this domain and restarting the K2 blackpearl service resolved the issue.