Archive

Posts Tagged ‘content query’

ListingSummary webparts don’t work after upgrading to SharePoint 2010

April 5, 2012 2 comments

If you upgrade your portal from  SharePoint Point 2003 to SharePoint Server 2010.you will face many issues , especially if you are using Listing Summary web parts in SharePoint Portal 2003, because when you upgrade from SharePoint 2003 to Microsoft SharePoint Server 2007 , you find that the listing summery web part is obsolete now in MOSS 2007 and it’s replaced by Content Query Webpart

This following article shows the listingsummary class as obsolete in 2007.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.portal.webcontrols(office.12).aspx

also, if you upgrade to SharePoint Server 2010 and your content Database still have references to this web parts type. You will get an exception as the following

“Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.”

You can solve this issue as the following :-

1-      In MOSS 2007 Environment, export this type of webparts

2-      Edit exported file, you will find a reference as below

Microsoft.SharePoint.Portal.WebControls.ListingSummary, Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c

3-      Delete above reference , and add the following reference

Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c

And import it in the same place in SharePoint Server 2010

Apply  above steps to all webpart of this type, then you will find that your portal woring fine

Advertisements