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'm working on creating an event receiver which facilitates synchronization between two lists. I originally created the receiver as a sandbox solution and after successful testing deployed it to production. The problem I ran into was that because the receiver got called so frequently by the end of the day we hit our '300 Server Resource' limit for usercode objects. Because I can't lower the amount of times the receiver gets called, I'd like to rescope it to the WebApplication for two reasons:

1) Avoid UserCode resource limitations 2) Policy dictates I can't deploy to GAC.

I attempted to rescope my receiver to WebApp by:

1) On the original project, set the SandboxSolution to false and set Assembly Deployment Target to WebApplication 2) Started a new project scoped as a farm solution and set to WebApplication.

Both receive the error: "Error occurred in deployment step 'Activate Features': Operation is not valid due to the current state of the object." when I attempt to debug.

Can anybody guide me in what might be causing this error?


share|improve this question
up vote 1 down vote accepted

Event Receivers can go into GAC or Sandbox, but that the only options. You can't deploy them to the bin folder as they are called by TimerJob, PowerShell, CommandLine, ....

share|improve this answer

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.