jump to navigation

Custom web parts not getting displayed after deployment in share point 2010. how to resolve ? July 10, 2010

Posted by Abhijit Jana in General, My Articles, Sharepoint 2010.
Tags: ,
trackback

In Share point 2010, we can create Visual Web parts very easily from Visual studio and can 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.

Fig :  No web parts after deployment

This problem might happen due to activation of features list of your corresponding web parts.  To resolved this issue you need to perform the following steps.
1. Go To Site Action from you Share Point Site and Navigate to Site Settings

 

Fig : Navigate to Site Settings

2. In site setting page select “Site Collection Features” under “Site Collection Administrator” Section.

Fig : Select “Site Collection Features” for get the list of features

3. There you will find the list of features that belongs to your site collection. Just search for your own web parts features. You will find it as “deactivate State” .  :(

Fig : Click on Activate to Activate the Feature

4. 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.

 

 

Fig : Verify Custom Web Parts from Web Parts Gallery

Fig : Verify Custom Web Parts from Edit Page

Hope this post help you to resolve your issue and save your time.  :)

Cheers !

Shout it

Comments»

1. DotNetShoutout - July 10, 2010

SharePoint 2010 – Not able to view Custom Web Parts after deployment. How to Resolve? « Abhijit’s World of .NET…

Thank you for submitting this cool story – Trackback from DotNetShoutout…

2. Phani Kumar - November 3, 2010

Hi I have followed the steps and the webpart is showing under Custom, but when I am adding this webpart i am getting the error as

A web part or web form control on this page cannot be displayed or imported. This type is not registerd as safe.

3. Viki - January 4, 2011

Thanks a lot it !

4. Lev - October 17, 2011

Thank you !!!

5. Kay - December 2, 2011

@Phani

My guess is you’re copy pasting code, which can cause the spdata file to not update correctly.

Make sure its directive is configured like so:

6. Gaurav Yadav - December 22, 2011

This is one of the best articles so far I have read online. No crap, just useful information. Very well presented. Its really helpful for beginner as well as developer. Thanks for sharing with us. Check out this link too its also assist in understanding of sharepoint.
http://mindstick.com/Articles/9e1d1fe1-7e51-4d01-86ec-f1f679631a7e/?Create%20and%20Deploy%20Visual%20WebPart%20in%20SharePoint%202010

7. mani - April 26, 2012

thanks abhi for give correct navigation


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,667 other followers

%d bloggers like this: