This may be an old thread, but I HATE unanswered questions when I am looking for them.

I solved this same issue by running my prompt as an admin with full rights to both the folder and file (right-click on cmd and click "run as administrator").

Found the solution here:
http://www.daniweb.com/software-deve...w-an-exception