I m writing this subject as a quote to respect the original author of the subject located on : answers.unity3d.com. I m dealing with the same stuff and I m looking for a solution for the exception thrown by some processes !
the author says he thinks the problem is related to windows7 security, but since its running correctly when compiled by visual studio c# ! I think the problem is somewhere else ! Any suggestions or solutions ?
Stuff compiled by VC likely have the required security update appleid (look if the windows UAC shield is over the app icon). what this does is admin elevate the app.
With Unity you can do this too but you need to do it manually using the mt.exe tool that comes with VS 2008 (2010 seems to be missing it, unsure how you would do it there) through command line. I’m using it in my installer creation process for anything that has a local cache for example