I had really hard time fixing deployment issues for Sandboxed solutions when I had a Feature Event Receiver class added in my solution for a very simple, basic feature.
Firstly, I found that deploying from Visual Studio only gave me unfriendly error message: “The Sandboxed code execution request failed” at the time of feature activation. After some searching, it suggested that my dev environment may have permissions issue for the service account under which my Sandbox Code Host Service was running. I tried to fix, but couldn’t get it working.
I rebuild my dev VM and then I again configured my Farm. When I reached to the point where I can deploy my Sandboxed Solution again, it gave me this error message:
The sandboxed code execution request was refused because the Sandboxed Code Host Service was too busy to handle the request
I came across this article written by Chris Zhong Error: “The sandboxed code execution request was refused because the Sandboxed Code Host Service was too busy to handle the request”
Following the suggested steps in that article, it fixed my problem.
Ujjaval