This question already has an answer here:
I have a privileges everywhere, but where i deploy a project with webParts, Visual studio, show me following error :
Error 1 Error occurred in deployment step 'Recycle IIS Application Pool': Object reference not set to an instance of an object.
How to solve this proble. Thank you previously!