It sounds like permission problem. Please verify few points:
1. Make sure VS2010 is running as Administrator
2. Make sure you are the local admin and having owner rights in SQL content DB.
3. Also check your permission in few local groups as mentioned in below link:
Let us know your result