Note that there are some explanatory texts on larger screens.

plurals
  1. POMono 2.10 Reflection error
    text
    copied!<p>I am trying to deploy an ASP MVC 3 (.NET Framework 4.0) application to ubuntu 12.04 with Mono. This is the current version I have of Mono installed:</p> <blockquote> <p>Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2) Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: Included Boehm (with typed GC and Parallel Mark)</p> </blockquote> <p>In order to know exactly where the code was breaking I removed the ASP project and run my method from a console application so I could debug into. I found this is the method where my code is breaking:</p> <pre><code> public IEnumerable&lt;Type&gt; loadClassAttributes&lt;TAttribute&gt;() where TAttribute : System.Attribute { return from a in AppDomain.CurrentDomain.GetAssemblies() from t in a.GetTypes() where t.IsDefined(typeof(TAttribute), false) select t; } </code></pre> <p>And this is the error stack Mono Developer is showing:</p> <blockquote> <p>System.Linq.Enumerable+c__Iterator2B<code>3[[System.Reflection.Assembly, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Type, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[&lt;&gt;__AnonType1</code>2[[System.Reflection.Assembly, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Type, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], TBL.Common.Dal, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext ()</p> </blockquote> <p>When I ran this same application from ASP MVC using XSP4 this is the screenshot my browser displays</p> <p><img src="https://i.stack.imgur.com/qXznx.png" alt="enter image description here"></p> <p>I have been doing .NET development for years, but I am really newbie to Mono. I wonder if someone else has gone into this issue and how to solve it.</p> <p>Thanks in advance.</p> <p>EDIT: Added log output</p> <p>Mono: gc took 31 usecs Mono: Assembly Loader probing location: '/usr/lib/mono/4.0/mscorlib.dll'. Mono: Image addref mscorlib[0x20fc8c0] -> /usr/lib/mono/4.0/mscorlib.dll[0x20fbb90]: 2 Mono: AOT failed to load AOT module /usr/lib/mono/4.0/mscorlib.dll.so: /usr/lib/mono/4.0/mscorlib.dll.so: cannot open shared object file: No such file or directory</p> <p>Mono: Assembly Loader loaded assembly from location: '/usr/lib/mono/4.0/mscorlib.dll'. Mono: Config attempting to parse: '/usr/lib/mono/4.0/mscorlib.dll.config'. Mono: Config attempting to parse: '/etc/mono/assemblies/mscorlib/mscorlib.config'. Mono: Assembly mscorlib[0x20fc8c0] added to domain alogimex.test.exe, ref_count=1 Mono: Config attempting to parse: '/etc/mono/config'. Mono: Config attempting to parse: '/home/mleyzaola/.mono/config'. Mono: Assembly Loader probing location: 'alogimex.test.exe'. Mono: Image addref alogimex.test[0x21791f0] -> /home/mleyzaola/net/alogimex.mono/alogimex.mono.solution/alogimex.test/bin/Debug/alogimex.test.exe[0x20fa980]: 3 Mono: Assembly alogimex.test[0x21791f0] added to domain alogimex.test.exe, ref_count=1 Mono: AOT failed to load AOT module /home/mleyzaola/net/alogimex.mono/alogimex.mono.solution/alogimex.test/bin/Debug/alogimex.test.exe.so: /home/mleyzaola/net/alogimex.mono/alogimex.mono.solution/alogimex.test/bin/Debug/alogimex.test.exe.so: cannot open shared object file: No such file or directory</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload