Every time I try to publish a MVC4 website on a Windows 2008 Server by using the Web Publish tool, VS.NET crashes with System.UnauthorizedAccess. The VS.NET exe is running with full administrator rights and the destination folder has full control rights assigned to IIS_IURS user.
On the same machine, VS.NET 2010 does the publish without crashing.


I had the same problem, when I installed the suggested patch at the address below, it resolved my issue.
http://blogs.msdn.com/b/webdev/archive/2012/07/12/visual-studio-2012-rc-web-tooling-extensions-update.aspx
Background info:
This is the connect issue that is likely similar to yours:
http://connect.microsoft.com/VisualStudio/feedback/details/747721/vs-2012-crashing-when-trying-to-run-publish