Saturday 19 May 2012

Sandbox Error : UserCodeToken Is Invalid

While deploying a new Sandboxed Solution to my farm,i encountered some what error like "UserCodeToken is Invalid"  
 
The error says "Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: The UserCodeToken is invalid". 
I didnt get any events for this error nor the message helped me to find any solution.
After spending quality time i found the solution which worked in my case.
 
Solution : Restart the service SPUsercodeV4 from PowerShell . Command "Restart-Service SPUsercodeV4" 

Hope this helps someone :)

1 comment: