[Mono-dev] File does not contain a valid CIL image.

shware shware1 at aim.com
Wed Dec 17 12:19:11 EST 2008


Testing binary compatibility between Windows and mono version 2.0.1 on
CentOS5.  Trying to build a small exe on windows and then run on CentOS5
without recompile.  When running on CentOS I get an "Cannot open assembly
'...' : File does not contain a valid CIL image." error.

Compiling program using gmcs on CentOS5 generates a valid image and runs.

On Windows, cs.exe version info:

Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.3053
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

On CentOS, gmcs version info:

Mono C# compiler version

Program source is very basic:

using System;

namespace binary_bin_test
    class Program
        static void Main(string[] args)
            Console.WriteLine("Hello from binary-bin-test!!!");

I've scoured around but can't seem to find anything that helps.  



View this message in context: http://www.nabble.com/File-does-not-contain-a-valid-CIL-image.-tp21057389p21057389.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list