[Mono-bugs] [Bug 551513] New: System.BadImageFormatException when compiled with mono but not MS Visual Studio

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 30 14:43:39 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=551513


           Summary: System.BadImageFormatException when compiled with mono
                    but not MS Visual Studio
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.4.x
          Platform: i386
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: novel at andrewrondeau.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=324934)
 --> (http://bugzilla.novell.com/attachment.cgi?id=324934)
Mono error message

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4

One of my .dll files, when compiled with Mono in Release mode, causes a
"System.BadImageFormatException".  If I compile in Debug mode, or if I compile
with MS Visual Studio, it runs correctly.

I'm having this problem with the Mono-2.4.2.3 Linux VM, and Mono 2.4 on Mac.

I compile with MonoDevelop.

Reproducible: Always

Steps to Reproduce:
1.  Obtain
http://andrewrondeau.com/ObjectCloud/Code/2009-10-30%20ObjectCloud%20Source%20code%201.0%20Alpha%201-0.zip
2.  Open Server/ObjectCloud.sln in MonoDevelop and build in *Release* mode
3.  In a terminal, cd to Server/ObjectCloud/bin/Release
4.  mono ObjectCloud.exe
5.  On Mono+Linux you'll get a SIGABRT.  On Windows+.Net you'll get the
System.BadImageFormatException

(optional)
-.  Build ObjectCloud.sln in Visual Studio 2005 and observe that
ObjectCloud.exe works

(optional)
-.  Build ObjectCloud.sln in both MonoDevelop and Visual Studio 2005.  Use all
of the MonoDevelop built libraries with
ObjectCloud.Webserver.Implementation.dll from Visual Studio 2005.  Observe that
it works
Actual Results:  
Mono compiles ObjectCloud.WebServer.Implementation.dll incorrectly, resulting
in a corrupted dll

Expected Results:  
Mono should compile ObjectCloud.WebServer.Implementation.dll correctly.

The error messages that come from mono + linux, mono + mac, and Windows + .net
are attached

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list