Article ID: 979636 - View products that this article applies to.
You cannot add a Web Part that is in a sandboxed solution to a Microsoft SharePoint Foundation 2010 page. This problem occurs when the Web Part is inherited from the Microsoft.SharePoint.WebPartPages.WebPart class.
This problem occurs because a Web Part that is inherited from the Microsoft.SharePoint.WebPartPages.WebPart class is not supported in a sandboxed solution.
To work around this problem, use a Web Part that is inherited from the ASP.NET base class.
For more information about the base class for creating SharePoint Foundation 2010 Web Parts, visit the following Microsoft Developer Network (MSDN) Web sites:
Information for base class for creating Microsoft SharePoint Foundation Web Parts
Information for base class for custom ASP.NET Web Parts controls
Article ID: 979636 - Last Review: September 12, 2011 - Revision: 4.0