mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file … Access is denied

后端 未结 11 1435
礼貌的吻别
礼貌的吻别 2021-02-02 07:02

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

相关标签:
11条回答
  • 2021-02-02 07:32

    Go to Debug and/or Release folder(s), right click and unset, recursively, the Read-Only property.

    Found this tip in the MSDN Community and solved my problem!

    0 讨论(0)
  • 2021-02-02 07:34

    Funny enough I had the exact same error and a "rebuild" on the whole project solved it.

    0 讨论(0)
  • 2021-02-02 07:39

    Open visual studio 2010 as "Run as administrator" and Rebuild again.

    0 讨论(0)
  • 2021-02-02 07:41

    If you are embedding a manifest file, your anti-virus program may lock and scan your exe file before embedding the manifest.

    I recommend disabling anti-virus from reading your DEBUG and RELEASE output folders.

    0 讨论(0)
  • 2021-02-02 07:43

    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

    It resolve the problem for me on VS2008 without disabling Anti-virus. ;)

    Enjoy :)

    0 讨论(0)
  • 2021-02-02 07:49

    disabling the Anti-Virus worked for me.

    0 讨论(0)
提交回复
热议问题