Skip to main content


 

Symptoms

 


 1.
After migrating Sharepoint and K2, the following error occurs "Value cannot be null. Parameter name: token" when accessing K2 links

2.
Geting an error for web parts that state, A Web Part or Web Form Control on this page cannot be displayed or imported. The type is not registered as safe
 

 

Diagnoses

 


1.
Claims had not be configured:
https://help.k2.com/onlinehelp/k2blackpearl/icg/current/webframe.html_claims_authentication_configuration.html

2.
http://help.k2.com/kb001271
 

 

Resolution 

1.
A Powershell and SQL script was provided to register these claim configurations in the K2 database.

2.
The appropriate SafeControls were added to the web.config file:

1. Please navigate to the web.config for this site usually can be done so by Right Clicking on this site in IIS and using the "Explorer" option.
2. Make a backup of the web.config file
3. Add the following entries to the section (if not already there and will correlates with the error seen):

<SafeControl Assembly="SourceCode.Workflow.TaskList, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d" Namespace="SourceCode.Workflow.TaskList.WebPart" TypeName="*" Safe="True" /> <SafeControl Assembly="SourceCode.SharePoint.WebPart.Reporting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3a044eb998e657b6" Namespace="SourceCode.SharePoint.WebPart.Reporting.ProcessGraph" TypeName="*" Safe="True" /> <SafeControl Assembly="SourceCode.SharePoint.WebPart.Reporting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3a044eb998e657b6" Namespace="SourceCode.SharePoint.WebPart.Reporting.IntervalGraph" TypeName="*" Safe="True" /> <SafeControl Assembly="SourceCode.SharePoint.WebPart.Reporting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3a044eb998e657b6" Namespace="SourceCode.SharePoint.WebPart.Reporting.ActivityGraph" TypeName="*" Safe="True" /> <SafeControl Assembly="SourceCode.SharePoint.WebPart.Reporting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3a044eb998e657b6" Namespace="SourceCode.SharePoint.WebPart.Reporting.MyProcesses" TypeName="*" Safe="True" /> <SafeControl Assembly="SourceCode.SharePoint.Forms.WebParts, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d" Namespace="SourceCode.SharePoint.Forms.WebParts" TypeName="*" Safe="True" />
 
4. Save the web.config
5. Perform an IISReset and retest

 

 



 
Be the first to reply!

Reply