title: Problems running visual studio executables with mono
body: <p>I'm trying to run with Mono executable files created by visual studio 2010.
  Setting in VS 2010 are:
  -c++ project
  -cil pure</p>
  
  <p>My final target is to compile Parsec benchmarks using visual studio 2010 and then run the executables with mono both in windows and linux.</p>
  
  <p>By now I created a simple c++ project including only a printf.
  The executable runs fair with mono under windows, while it gives me back many problems under linux</p>
  
  <p>this is what i get:</p>
  
  <pre><code>** (thread.exe:1424): WARNING **: Missing method .ctor in assembly /home/chezz/Scrivania/thread.exe, type System.Runtime.CompilerServices.FixedAddressValueTypeAttribute
  
  ** (thread.exe:1424): WARNING **: Can't find custom attr constructor image: /home/chezz/Scrivania/thread.exe mtoken: 0x0a00000d
  
  Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for &lt;Module&gt; ---&gt; &lt;CrtImplementationDetails&gt;.ModuleLoadException: The C++ module failed to load.
   ---&gt; System.MissingMethodException: Method not found: 'System.AppDomain.IsDefaultAppDomain'.
    at &lt;Module&gt;.&lt;CrtImplementationDetails&gt;.LanguageSupport.Initialize (&lt;CrtImplementationDetails&gt;.LanguageSupport* ) [0x00000] 
    --- End of inner exception stack trace ---
    at &lt;Module&gt;.&lt;CrtImplementationDetails&gt;.ThrowModuleLoadException (System.String errorMessage, System.Exception innerException) [0x00000] 
    at &lt;Module&gt;.&lt;CrtImplementationDetails&gt;.LanguageSupport.Initialize (&lt;CrtImplementationDetails&gt;.LanguageSupport* ) [0x00000] 
    at &lt;Module&gt;..cctor () [0x00000] 
    --- End of inner exception stack trace ---
  </code></pre>
  
  <p>Any idea?
  Thanks
  Andrea</p>