Every time I try to deploy my project (containing only one Event Receiver), I get the following error:
Error occurred in deployment step 'Activate Features': Operation is not valid due to the current state of the object.
I simply restart Visual Studio and Redeploy and it works. But I have to do this everytime I want to deploy. What could be causing this issue?