In my case, it happened when my page contains errors (which i knew) that i tried to drag a control from the toolbox. Same error appeared as discuss here.
So what i did is remove all occurences of errors, and then build the solution. Once successful, i tried dragging the controls again, it worked!