[Mono-dev] "mscorlib.dll is an invalid CIL image"

Kornél Pál kornelpal at gmail.com
Tue Apr 28 18:02:36 EDT 2009


mscorlib.dll is tightly integrated with the runtime so mixing the 
runtime and mscorlib.dll is guaranteed not to work. Verify the same 
mscorlib.dll that you want to use using peverify.exe from MS.NET for 
example or on another box with Mono.

Also ensure that the file isn't corrupted by non-binary trasfer. Verify 
its md5sum for example.

If mscorlib.dll is OK the your runtime is corrupt of compliled incorrectly.

Kornél

Chris Plasun wrote:
> Thanks for your reply Rodrigo.
> 
> I copied mcorlib.dll both from the Microsoft .NET distribution 
> and from the Mono distribution so it should be valid. I tried various versions.
> 
> The Mono version is 2.2 and it is cross compiled for powerpc-e300c3
> 
> Is there a "standard" powerpc-e300c3 version of Mono that I can use? 
> 
> Can I use ANY version of Mono for the PowerPC?
> 
> How would I trace into the error I'm receiving?
> 
> Thanks again.
> Chris Plasun
> 
> 
> 
> ________________________________
> From: Rodrigo Kumpera <kumpera at gmail.com>
> To: Chris Plasun <chrispl78 at yahoo.com>
> Cc: mono-devel-list at lists.ximian.com
> Sent: Tuesday, April 28, 2009 12:23:53 PM
> Subject: Re: [Mono-dev] "mscorlib.dll is an invalid CIL image"
> 
> This might be a bug in your mscorlib.dll or the mono runtime decoding functions.
> 
> What version of mono are you using? Did you cross compile or built on the host?
> 
> Is your mscorlib really valid?
> 
> 
> 
> On Tue, Apr 28, 2009 at 3:56 PM, Chris Plasun <chrispl78 at yahoo.com> wrote:
> 
> 
> Hi,
> 
> I'm trying to get Mono working on a Freescale MPC8313 PowerPC embedded Linux board.
> 
> When I try to run a 'hello world' application I get the following error:
> 
> "mscorlib.dll is an invalid CIL image"
> 
> I've looked around on Google and I have **nothing** that gets me a step further.
> 
> I'm out of options as far as I know.
> 
> Does anyone know how I can fix this issue?
> 
> Thank you for any help.
> 
> Chris Plasun
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 


More information about the Mono-devel-list mailing list