You are currently offline, waiting for your internet to reconnect

You cannot add a Web Part that is in a sandboxed solution to a SharePoint Foundation 2010 page

Applies to:
  • Microsoft SharePoint Server 2010
  • Microsoft SharePoint Foundation 2010
SYMPTOMS
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.
CAUSE
This problem occurs because a Web Part that is inherited from the Microsoft.SharePoint.WebPartPages.WebPart class is not supported in a sandboxed solution.
WORKAROUND
To work around this problem, use a Web Part that is inherited from the ASP.NET base class.
MORE INFORMATION
For more information about the base class for creating SharePoint Foundation 2010 Web Parts, visit the following Microsoft Developer Network (MSDN) Web sites:
Properties

Article ID: 979636 - Last Review: 09/12/2011 03:41:00 - Revision: 4.0

Microsoft SharePoint Server 2010, Microsoft SharePoint Foundation 2010

  • kbtshoot kbexpertiseadvanced kbsurveynew kbprb KB979636
Feedback
s.dqp0';m.content='true';document.getElementsByTagName('head')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?"> if?DI=4050&did=1&t=">