[Mono-dev] System.TypeLoadExceptions in mono 2.11.4

Marek Safar marek.safar at gmail.com
Wed Oct 10 08:58:17 UTC 2012


Hi,

I am just guessing here but this looks like you are running newly compiled
compiler using 2.0 mono (old version?). You are better to check

http://www.mono-project.com/Logging_Runtime_Events

which should help you find out what is really getting loaded.

Marek

On Tue, Oct 9, 2012 at 7:00 PM, sebastian <sebastian at palladiumconsulting.com
> wrote:

> I've just freshly built mono 2.11.4 from source using RHEL using
>
> $ uname -a
> Linux myhostname 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012
> x86_64 x86_64 x86_64 GNU/Linux
> $ gcc --version
> gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)
>
> And all functionality seems to fail with the same System.TypeLoadException
>
> $ mcs
>
> Unhandled Exception:
> System.TypeLoadException: Could not load type
> 'Mono.CSharp.CompilerSettings' from assembly 'mcs, Version=2.11.4.0,
> Culture=neutral, PublicKeyToken=null'.
>   at Mono.CSharp.CommandLineParser..ctor (System.IO.TextWriter
> errorOutput) [0x00000] in <filename unknown>:0
>   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
> unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not
> load type 'Mono.CSharp.CompilerSettings' from assembly 'mcs,
> Version=2.11.4.0, Culture=neutral, PublicKeyToken=null'.
>   at Mono.CSharp.CommandLineParser..ctor (System.IO.TextWriter
> errorOutput) [0x00000] in <filename unknown>:0
>   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
> unknown>:0
>
> The same happens whether running a "hello world" program, NUnit test,
> built-in applications, etc. Obviously something is configured or built
> incorrectly, but I am at a loss as to what, as the configure, make, and
> make install steps all ran without error. Where do I start looking?
>
> Thanks,
>
> Sebastian
>
> _______________________________________________
> 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/20121010/7bed0a82/attachment-0001.html>


More information about the Mono-devel-list mailing list