error: c101008d
Hi all,
I have the following minor but annoying error whenever I build my application for the first time after modifying its code .
"Error 2 general error c101008d: Failed to write the updated manifest to the resource of file ".\Debug\eConsole.exe". The process cannot access the file because it is being used by another process. mt.exe "
The building is fine for the second time. In other words, whenever I modify the code, I have to build it twice because the first time always generates the above error. This is true for both debuga and release versions. This is not a big deal, but just a bit annoying.
Could anyone offer some tip to fix this?
Thanks,
hz
[750 byte] By [
hipswich] at [2007-12-23]
Use Handle from SysInternals to see what other process has a handle to the exe.
I suspect what you'll find is that it is a devenv bug, though, especially if you're using VS 2005 which is the worst IDE put out yet by Microsoft in terms of stability.
Handle can be found here:
http://www.sysinternals.com/Utilities/Handle.html
Thanks, Rabbi!
I searched for mt.exe before and after the building and could not find anything. I am quite sure that I did the search in a correct way because if I have a word file open and search for the file name it will return winword.exe as the process holding the file.
What is puzzling is if I build it again WITHTOUT doing anything, it will build it correctly. In other words, I need to click the build button twice.
hz
Yes, but documentation seems to suggest that you need to manually invoke it to sign files and catalogs. I dont think the IDE invokes it automatically. So unless you are calling it manually or
through a precompile step on your project....Nikhil,
I have just gone through all the properties of the VS project and could not find anything referring to mt.exe. I am lost.
hz
Find mt.exe and look at its properties... Use processexplorer from sysinternals to see whats spawning mt.exe before/during/after rebuilds. See if you can in any ways indentify what and where this process comes from. All failing, run a antivirus check/investigate possibility that this is a malicious application.
Hi Nikhil,
I used processexplorer to search for mt.exe yesterday and today, before, during and after the building, but I found nothing.
I have just done a virus scan and found nothing. My computer is on our corporate network and guarded tightly.
hz
I get this all the time. VS2005, C++ project, release build (debug works fine). I just built the app 27 times in a row before it finally succeeded. It drives me absolutely bonkers. A coworker of mine says he has seen it only a couple times while building the same app.
Thanks, BradEdwards, for the information. Now, at least, I know that I am not alone so my computer and its configuration are unlikely the problem. Most probably it is another VS bug that I can live with for now.
I had this error, too. It seemed to be caused by Norton Antivirus Autoprotect, which tried to scan doings of mt.exe (since it is odd application launched by application). I got rid of the error when I defined Autoprotect to ignore mt.exe. Now everything is smooth.
You may turn off embedding manufist file.. I'm not sure if adding a resource file to your project would help.. but most propubly option one will work.
There is a 'maximum number of paralel project builds' option under 'Tools', 'Options', 'Projects and Solutions', 'Build and Run' branch... Setting it to 1 solved my problems...
Krassi
Great diagnosis Anonymousojjojo! I had this problem as well. VERY annoying. The problem was Symantec Antivirus Autoprotect. I turned AutoProtect off and immediately everything worked. Now I just have to figure out how to turn Autoprotect back on without it scanning mt.exe but that should not be very difficult.