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 installed Visual Studio power tools so that i can add Visual Web Parts. This all works fine, i can deploy Visual Web Parts etc.

I now want to create a UserControl in my solution which i can reuse in my Visual Web Parts, pages etc.

How do i do this?

I have tried adding a UserControl to the solution but this causes a build failure (something about control templates in sandboxed solution)

share|improve this question
up vote 1 down vote accepted

Application pages, user controls (.ascx files), and localization resource (.resx) files cannot be deployed with a sandboxed solution.

Learn more about restrictions on Sandbox solutions

share|improve this answer
A small remark on this is that user controls are allowed in SharePoint 2013 Visual Web Parts – Eric Herlitz May 12 '14 at 15:52

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.