Skip to main content


 

Symptoms


If going to Smartforms first, everything works as expected. When accessing SharePoint first and then going to Smartforms, you receive the error: "Server Error
ID4230: The SecurityToken was not well formed. Expecting element name 'SecurityContextToken', found 'SP'."
 

Diagnoses


This occurs due to a cookie issue when the Smartforms site name is a child site of the SharePoint site. This can be permanently fixed by changing the Host Header for K2. After changing the Host Header you will also need to update the Identity.ClaimAudience table.
 

Resolution

For a quick fix, update the web.config files located in each of these locations: sINSTALLDIR]K2 blackpearlK2 smartforms Designer and nINSTALLDIR]K2 blackpearlK2 smartforms Runtime

Change the "cookieHandler" node in the "federationConfiguration" to be similar to the following:

- cookieHandler requireSSL="true" path="/" name="FedAuthk2"

After doing this, clear the browser cache to delete any existing cookies and test this change.




 
Be the first to reply!

Reply