I often have this problem even when I build a new C++ project and try to build a release file.
I use Visual studio 2008. One thing that may cause this problem is my code
If you need not generate Manifest file, just set it off it will resolve the problem.
Goto Project(right click) properties Linker Manifest Files Generate Manifest change it Yes to No
Goto Project(right click)
properties
Linker
Manifest Files
Generate Manifest
change it Yes to No
It resolve the problem for me on VS2008 without disabling Anti-virus. ;)
Enjoy :)