SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have added 1 Element File for CustomRibbon Button.

And added 1 Feature to deploy this RibbonButton.

When I deploy this, it deploys and Feature is Activated but not displaying the Button in ListRibbon. I don't know what is the problem ?

But when I write ElementFile Location="Ribbon.xml in ElementManifests tag of Feature it gives me an error while deploying.

Error occurred in deployment step 'Add Solution': Error: Cannot find this file specified in the manifest file:MyProject_MyRibbon\Ribbon.xml

My Element.xml file is as under:

  Title="My Custom-Ribbon" >

    <CommandUIExtension xmlns="">
            <CommandUIDefinition Location="Ribbon.List.Settings.Controls._children">
                    Alt="My Custom Ribbon"
                    LabelText="My CustomRibbon"
                    TemplateAlias="o1" />

              CommandAction="javascript:alert('SharePoint 2010 Rocks!');" />


share|improve this question
Shahid, please share your Elements.xml file – Arsalan Adam Khatri Dec 1 '12 at 12:05
Hi Arsalan, I have added element.xml file in the question. – Shahid Dec 3 '12 at 4:52
Its working in my CustomList which is created from Site. But not working when List is created from visual studio code. – Shahid Dec 3 '12 at 6:37
Then problem not seems to be in CustomAction.. Can you post the code how you creating the List via code? – Arsalan Adam Khatri Dec 3 '12 at 6:39,&source=bl&ots=2T5lGxMUfh&sig=D5G3Zp-_6rvt7Gs-XZHCoCjGMYQ&hl=en&sa=X&ved=0CEMQ6AEwBWoVChMIheak4vSbyAIVjFuOCh1RyASL#v=onepage&q=create%20features%20elements%20file%2C&f=false

This may help. Gives an overview from 14/ folder and from solution.

share|improve this answer
Quote some of the most important bits of the solution. – Paul Strupeikis Sep 29 '15 at 12:55
Link only answers are not that helpful. There are high chance that link will break. Please provide information which is useful to other visitors. – Asad Refai Sep 29 '15 at 13:14


Open the feature that includes the project item and expand the files node on the project item to verify the files that are included with the item. I suspect that your elements file will not be displayed. You need open the properties for the elements file (open the file and click F4), and make sure that the type on the file is set to "ElementManifest". Also, Change .WSP to .Cab and look inside" because it would be very helpful!

share|improve this answer
Thanks Falak Mahmood. – Shahid Dec 5 '12 at 7:26
did it help? Please share you experience? – Falak Mahmood Dec 5 '12 at 8:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.