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

Rodrigo Kumpera kumpera at gmail.com
Thu Dec 18 10:47:51 EST 2008


Looks like you're giving mono the wrong comand line arguments. '...' is a
filename on linux and doesn't
work like "../../" as it does on windows.


On Wed, Dec 17, 2008 at 3:19 PM, shware <shware1 at aim.com> wrote:

>
> Hi,
>
> 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 2.0.1.0
>
> 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.
>
> Thanks!
>
>
> Shawn
>
>
> --
> 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.
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081218/84d6ad57/attachment-0001.html 


More information about the Mono-devel-list mailing list