Variations requires SharePoint Web Parts
These last few days we have become aware of an important limitation regarding variations in SharePoint Server. The thing is that when using variations, web parts need to be inherited from the SharePoint WebPart class (Microsoft.SharePoint.WebPartPages.WebPart) and not from the ASP.NET WebPart class (System.Web.WebControls.WebParts.WebPart). If it is inherited from ASP.NET WebPart class, you will receive an InvalidCastException exception during variation propagation. This occurs when variations tries to cast your Web Part class to Microsoft.SharePoint.WebPartPages.WebPart before calling the PublishingPage.FixWebPartUrlsForVariation() method. I consider this a bug since it could easily be fixed by checking the type before trying to cast.
Comments
Anonymous
September 13, 2007
PingBack from http://www.virtual-generations.com/2007/09/13/sharepoint-2007-link-love-09-13-2007/Anonymous
June 17, 2009
These last few days we have become aware of an important limitation regarding variations in SharePointAnonymous
June 24, 2009
Is this issue resolved in any updates for SharePoint (WSS3.0 and MOSS2007)?