In SharePoint 2010, we can create Visual Web parts very easily from Visual Studio and deploy it directly from Visual Studio. After deployment, when adding a web part on a SharePoint page, you might face the issue that custom web parts are not getting displayed under custom web parts section though your deployment was successful from Visual Studio.
Figure: No web parts after deployment
This problem might happen due to activation of features list of your corresponding web parts. To resolve this issue, you need to perform the following steps.
- Go To Site Action from your SharePoint Site and Navigate to Site Settings:
Figure: Navigate to Site Settings
- In site setting page, select “Site Collection Features” under “Site Collection Administrator” Section.
Figure: Select “Site Collection Features” for get the list of features
- There you will find the list of features that belong to your site collection. Just search for your own web parts features. You will find it as “deactivate State”.
Figure: Click on Activate to Activate the Feature
- Click on the “Activate” Button. You are done.
To verify, you may again navigate to Edit Page and try to insert web part or you can go to “Web Parts Gallery” in “Site Settings” and just check out for your custom web parts controls.
Figure: Verify Custom Web Parts from Web Parts Gallery
Figure: Verify Custom Web Parts from Edit Page
Hope this post helps you to resolve your issue and save your time.
Cheers !
Filed under:
General,
My Articles,
SharePoint 2010