1
Vote

Execute of corflags.exe failed

description

Windows 7 Ultimate x64 SP1
Signer.exe v1.0
 
  1. Open a command prompt
  2. cd C:\Windows\Microsoft.NET\Framework\v2.0.50727
  3. C:\Signer.exe -k C:\test.snk -outdir C:\Signer -a Test.exe
  4. Notice the error:
    Execute of corflags.exe failed
     
    Execute of ildasm.exe /? failed
    An unexpected processing error did occur: System.NullReferenceException: Object
    reference not set to an instance of an object.
    at Signer.Executor.GetInvalidCommands()
    at Signer.Program.Execute()
    at Signer.Program.Main(String[] args)

comments

icnocop wrote Nov 2, 2011 at 6:09 AM

The error message is misleading and should indicate that ildasm.exe does not exist in the PATH for example.

wrote Feb 13, 2013 at 10:52 PM

icnocop wrote May 27, 2013 at 8:10 PM

A work-around is to run the command in a "Visual Studio 2005 Command Prompt".