Introduction

When upgrading a MOSS 2007 environment to SharePoint Server 2010, where K2 has previously been installed and there are existing K2 reporting web parts, the web parts do not function correctly.  When attempting to load the K2 reporting web parts, no data returns.

This is due to the different locations for MOSS 2007 files and SharePoint Server 2010 files. 

 

The reporting web part feature for MOSS 2007 is located in the following folder:

Program Files>Common Files>Microsoft Shared>Web Server Extensions >12>Template>Features>SourceCode.SharePoint.WebPart.Reporting_ReportingWebparts>

SilverlightModule

The corresponding SharePoint Server 2010 feature is located in the following folder:

Program Files>Common Files>Microsoft Shared>Web Server Extensions >14>TEMPLATE>FEATURES>SourceCode.SharePoint.WebPart.Reporting14_ReportingWebparts>

SilverlightModule

 

During the upgrade, the MOSS 2007 feature is replaced with the equivalent SharePoint Server 2010 feature.  However, there is a known issue that the replacement process does not ensure the correct provisioning of the web parts for the newly upgraded SharePoint Server 2010.  It still refers back to the old MOSS 2007 reporting web part feature location.

Error Scenario

When attempting to load the K2 reporting web parts after upgrading a MOSS 2007 environment to SharePoint Server 2010, the web parts will be empty.  See image below.

Image

Resolution

To fix the empty K2 reporting web parts, the Silverlight module located in the MOSS 2007 feature folder needs to be copied to the SharePoint Server 2010 feature folder.

Follow the steps below:

 

  • Create the following folder:

“Program Files>Common Files>Microsoft Shared>Web Server Extensions>14>Template>Features>SourceCode.SharePoint.WebPart.Reporting_ReportingWebparts>SilverlightModule

  • Locate the XAP files in the “Program Files>Common Files>Microsoft Shared>Web Server Extensions> 14> TEMPLATE> FEATURES> SourceCode.SharePoint.WebPart. Reporting14_ReportingWebparts>SilverlightModule” location.
  • Copy these files to the newly created folder as per step 1: “Program Files>Common Files>Microsoft Shared>Web Server Extensions>14>Template> Features> SourceCode.SharePoint.WebPart.Reporting_ReportingWebparts>SilverlightModule
  • Clear the Internet Explorer cache.
  • Refresh the page.
  • The K2 reporting web parts will function correctly.