When you use Visual Studio on Windows 7 or Vista, you encounter "access denied. Please make sure you're running the application as administrator" error if you want to do some administrator's tasks.
There are two solutions:
- turn off the UAC of your Operating System
- run visual studio as administrator.
There is good trick for runing VS always as Administrator[1].
Reference:
[1]. http://weblogs.asp.net/soever/archive/2009/10/07/visual-studio-alway-run-as-administrator.aspx

