I had this happen when I created a command button. When I let VB.net create the event I was immediately greeted with that error.
What I did to fix it was deleted the object in the designer (a command button in my case), the code tied to it, saving my .sln & recreating the object. Problem solved.