2. Add a simple code within "CreateChildControls" method
build the solution, then "Package" the solution to create a ".wsp" file
4. Upload the "Solution" (.wsp file)
but "Activate" button is disabled :(5. So go to Central Administration --> "Services on server"
Start "Microsoft SharePoint Foundation Sandboxed Code Service"
6.Now "Activate" the solution
7. Verify whether the created item is listed under "WebParts" section (Site settings)
8. Add our WebPart to a page9. Deactivate "Solution" when task is done / no longer needed
10. If any case start "SharePoint 2010 User Code Host" service
If can't find the error, set CALLSTACK =TRUE in related web.config file and click "Activate" button.
No comments:
Post a Comment