I was testing the code provided in below MSDN Link:
http://msdn.microsoft.com/en-us/library/ms453149.aspx
But I got compile time error as "Error1Error occurred in deployment step 'Retract Solution': Cannot start service SPUserCodeV4 on computer 'ComputerName'. $000DeletingEventReceiver"$0
Not sure what's wrong!! any help guys?