Around 10-30% of the time when I compile the solution I am working on using F5 I get:
mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "..\Debug\DX10Interop.dll". Access is denied.
If I press F5 again, it usually, but not always compiles fine. On occasion I will get that error a second time. In those cases, pressing F5 again will almost always resolve that issue.
The solution I am working with consists of two projects. One solution is a managed C++ library using Direct3D 10 and is called DX10Interop. The other solution is a WPF application that uses the C++ library called DX10Client. They are both using the .NET 3.5 framework.
It seems to occur the most when I make changes to the header file in the C++ library.