Symptoms
K2 for SharePoint 2010 fails to load after upgrade to 4.6.11 with error "Could not load file or assembly 'SourceCode.SharePoint.ApplicationPages.Administration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d' or one of its dependencies. The system cannot find the file specified. "
Diagnoses
There appears to be an issue when the Smartforms components are upgraded prior to finishing the K2 blackpearl K2 for SharePoint component upgrades.
Resolution
To resolve this, upgrade the SharePoint components manually using the following instructions:
First verify all the k2*.resx files from the following two folders:
>C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ConfigAdminResources e6 total]
>C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ConfigResources e6 total]
are copied to:
>C:inetpubwwwrootwssVirtualDirectoriesxxxxxApp_GlobalResources
You need to look up the site ID for Sharepoint Central Administration, and substitute that number for the "xxxxx" in the above line. This can be easily done via IIS, by right-clicking the Central Admin site, and selecting "Basic Settings". This will show the exact path for the Virtual Directory for SharePoint Central Administration. ninstall directory may change depending on installation drive, etc.]
Using SharePoint 2010 Management shell
Retract solutions
Uninstall-SPSolution -Identity "K2 for SharePoint - Core Components.wsp"
Uninstall-SPSolution -Identity "K2 for SharePoint - Management Console.wsp"
Uninstall-SPSolution -Identity "K2 for SharePoint - Process Portals.wsp" -AllWebApplications
Uninstall-SPSolution -Identity "K2 for SharePoint - Reporting Web Parts.wsp" -AllWebApplications
Uninstall-SPSolution -Identity "K2 for SharePoint - Web Designer.wsp"
Uninstall-SPSolution -Identity "K2 for SharePoint - Workflow Core.wsp"
Uninstall-SPSolution -Identity "K2WorklistWebPart.wsp" -AllWebApplications
Delete solutions
Remove-SPSolution -Identity "K2 for SharePoint - Core Components.wsp"
Remove-SPSolution -Identity "K2 for SharePoint - Management Console.wsp"
Remove-SPSolution -Identity "K2 for SharePoint - Process Portals.wsp"
Remove-SPSolution -Identity "K2 for SharePoint - Reporting Web Parts.wsp"
Remove-SPSolution -Identity "K2 for SharePoint - Web Designer.wsp"
Remove-SPSolution -Identity "K2 for SharePoint - Workflow Core.wsp"
Remove-SPSolution -Identity "K2WorklistWebPart.wsp"
Add solutions
Add-SPSolution "C:Program Files (x86)K2 blackpearlSetupConfigurationSPSolutionsK2 for SharePoint - Core Components.wsp"
Add-SPSolution "C:Program Files (x86)K2 blackpearlSetupConfigurationSPSolutionsK2 for SharePoint - Management Console.wsp"
Add-SPSolution "C:Program Files (x86)K2 blackpearlSetupConfigurationSPSolutionsK2 for SharePoint - Process Portals.wsp"
Add-SPSolution "C:Program Files (x86)K2 blackpearlSetupConfigurationSPSolutionsK2 for SharePoint - Reporting Web Parts.wsp"
Add-SPSolution "C:Program Files (x86)K2 blackpearlSetupConfigurationSPSolutionsK2 for SharePoint - Web Designer.wsp"
Add-SPSolution "C:Program Files (x86)K2 blackpearlSetupConfigurationSPSolutionsK2 for SharePoint - Workflow Core.wsp"
Add-SPSolution "C:Program Files (x86)K2 blackpearlSetupConfigurationSPSolutionsK2WorklistWebPart.wsp"
Deploy solutions
Install-SPSolution -Identity "K2 for SharePoint - Core Components.wsp" -GACDeployment
Install-SPSolution -Identity "K2 for SharePoint - Management Console.wsp" -GACDeployment
Install-SPSolution -Identity "K2 for SharePoint - Process Portals.wsp" -AllWebApplications -GACDeployment
Install-SPSolution -Identity "K2 for SharePoint - Reporting Web Parts.wsp" -AllWebApplications -GACDeployment
Install-SPSolution -Identity "K2 for SharePoint - Web Designer.wsp" GACDeployment
Install-SPSolution -Identity "K2 for SharePoint - Workflow Core.wsp" -GACDeployment
Install-SPSolution -Identity "K2WorklistWebPart.wsp" -AllWebApplications -GACDeployment
The correct upgrade path to avoid this issue would be:
K2 blackpearl on K2 server
K2 blackpearl on SharePoint server
K2 Smartforms
K2 Smartforms Control Pack