mt.exe = this is not a valid win32 application RRS feed

  • Question

  • Hi, 
    I have the next problem, I've used the manifest tool (mt.exe) and it has been working fine.
    But I have an exe in which I add a manifest like this: 
    mt.exe -manifest "ServLic.exe.manifest" -outputresource:"ServLic.exe";#1 
    Code Snippet
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn: schemas-microsoft-com:asm.v1" manifestVersion="1.0">
       <ms_asmv2:trustInfo xmlns:ms_asmv2="urn: schemas-microsoft-com:asm.v2">
          <ms_asmv2: security>
                <ms_asmv2:requestedExecutionLevel level="requireAdministrator">
          </ms_asmv2: security>
    and when I try to execute it I get an error saying that this is not a valid win32 application
    This app is a service, is there a special consideration for this kind of apps (I mean services in Vista)?
    Tuesday, April 10, 2007 5:08 PM

All replies

  • Set the Configuratin Properties->Manifest Tool->Input and Output->Embed Manifest to No

    I think then it's will be ok.

    Tuesday, April 17, 2007 9:13 AM
  • you mean in the visual studio IDE, right?

    but Im not using the visual studio IDE, this is the reason cause Im injecting the manifest in this way (with the mt.exe), and this is the first exe which gives me this problem

    Wednesday, April 18, 2007 2:43 PM
  • Hi I need some help...

    Can you tell me step by step how to aply your solution. Im sorry but I'm new in this and don´t know where is the configuration properties besides the language of my computer is set to spanish so I can`t go and find it because the translation is not direct

    Monday, May 21, 2007 4:39 PM