I've created a simple SharePoint ribbon tab with a button on it; the button XML looks like this:

                Description="Says Hello"
                TemplateAlias="cust4" />

I know the compiler complains about deploying images to the sandbox.

Is it possible to add an image to a ribbon button in a sandboxed solution? And if so, how?

2 Answers 2


MSDN says:

Please note that CustomActionGroups cannot be added through a Sandboxed feature in SharePoint 2010. This requires a farm solution in order to be shown (it doesn't provide an error if it is a sandbox).

CustomActions can be added to existing SharePoint 2010 groups in a sandboxed feature.

Also you should keep in mind that Sandbox solution cannot deploy any files to the file system by security reason (All files are stored in contatnt DB for Sandbox solutions). I think that you can create your Module (in VS2010 you can see this temlate if you click add new item on existed project). Then put your picture to this Module and set reference to this picture in your custom action.


If you have SharePoint Designer, you may want to try this - Adding Button to ribbon using SharePoint Designer

Also, have a look at this. Customizing SharePoint Online with SharePoint Designer 2010

  • The OP was asking about sandbox solutions, not using SPD.
    – Ryan
    Commented Nov 29, 2011 at 8:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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