Unable to add selected web parts(s) - SmartPartTemplate

May 19, 2008 at 5:08 PM

SharePoint Web Part(SmartTemplate) seems working fine.

I have trouble with SmartPart Web Part(SmartTemplate), Added "Microsoft.SharePoint.dll" to WSPBuilder directory, otherwise "createwsp.bat" was breaking at line 7..(..\WSPBuilder\WSPBuilder.exe -WSPName SmartPartTemplateTest.wsp -BuildCAS false -SolutionID 46dca1a4cb08)

 

 

 

Setup didn't give any error, and every thing looks good, means, files are in templates folder and bin folder.

Error message..
I get this error, when ever I try to add webpart to a page. Didn't modify any thing

"Unable to add selected web parts(s) WebUserControl1: Cannot import this Web Part"

Cannot import this Web Part.   at Microsoft.SharePoint.WebPartPages.WebPartImporter.CreateWebPart(Boolean clearConnections)
   at Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb spWeb)
   at Microsoft.SharePoint.WebPartPages.WebPartPreview.get_WebPart()
   at Microsoft.SharePoint.WebPartPages.WebPartPreview.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)






Seems I am missing something, any help, Please?

Environment

Development Machine
Vista, Visual studio 2008, .Net 3.5

 Server
Windows 2003 64 bit + MOSS 2007 + SP1

Thanks,
Shine

May 27, 2008 at 8:51 AM
Hello Shine,

I think you did not install the smartpart itself. Install the return of the smartpart from:

http://www.codeplex.com/smartpart/Release/ProjectReleases.aspx?ReleaseId=10697

Cheers,
Marcel