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 realize of course that there is another question with the same title, and mine is a very similar question, but with a slightly different issue, I think:

I have created an empty feature with an event receiver. I uncommented the FeatureActivated and FeaturedDeactivating methods, but they have no implementation.

When I press F5 to deploy from SharePoint 2010, it builds, but then fails with the error as it appears in the title.

I couldn't find much useful in ULS, and there's nothing in the event log. What gives?

share|improve this question
Is there anything else being deployed in the Feature? – James Love Oct 29 '11 at 22:00
@JamesLove nothing. – Ben Collins Oct 31 '11 at 16:40
up vote 4 down vote accepted

Regardless of what code, or lack thereof, is contained in the solutuion SharePoint will still execute the user/sandobexed soultion inside the sandbox, i.e. it is run but the User Code Service.

I'd take a look at the setup of the User Code Serivce and verify that it is correct, this blog posting may help:

I've also encoutered problems deploying sandboxed solutions from visual studio where they just would not work until they had be been deployed and activated manually once.

share|improve this answer
I changed the setting as suggested, and it appears to have worked. However, my farm is a standalone installation (and a fresh installation), so why would this work now and now before? – Ben Collins Oct 31 '11 at 16:42

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.