The WebPart1.testxyz class does not derive from the Microsoft.SharePoint.WebPartPages.WebPart class and therefore cannot be imported or used in a WebPartZone control.

A quick fix for this error will be to change System.Web.UI.WebControls.WebParts.WebPart to Microsoft.SharePoint.WebPartPages.WebPart

Eg:

public class testxyz : Microsoft.SharePoint.WebPartPages.WebPart 
        //instead of System.Web.UI.WebControls.WebParts.WebPart
 
{
}
VN:F [1.1.6_502]
Rating: 0.0/5 (0 votes cast)
Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • LinkedIn
  • Live
  • MySpace
  • StumbleUpon
  • Technorati

Related posts:

  1. SharePoint WebPart deployment for beginners
  2. Create SharePoint 3.0 Custom Properties
  3. SharePoint error: The feature name WebPart1 already exists in SharePoint
  4. What’s new in SharePoint 2010
  5. SharePoint error: No SharePoint Site exists at the specified URL