[Mono-osx] Unable to run .Net windows application on Mac 10.4[Tiger]

Geoff Norton gnorton at novell.com
Mon Jun 23 09:53:07 EDT 2008


On Mon, 2008-06-23 at 06:46 -0700, Amit_k wrote:
> Hi Geoff,

> Objective: The idea is not to use x11 in Mac to run the windows application.
> So I need to run the application on Mac natively.

You still need X11 installed.  Please see the numerous messages about
this on the list.

> 
> Step 1: Installed the product[abc.dmg] on Mac 10.4
> Step 2: Installed Mono 1.9
> Step 3: Configured MONO_CONFIG 

why?

> Step 4: Configured LD_LIBRARY_PATH

why? this is a linux variable.

> Step 5: when i run mono abc.exe
> Step 6: I got the below exception 
> 
> Unhandled Exception: System.Reflection.TargetInvocationException: Exception
> has been thrown by the target of an invocation. --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException:
> /Library/Frameworks/Mono.framework/Versions/1.9.1/lib/libgdiplus.dylib

this is (likely) due to x11 not being installed.

> 
> Step 7: I set loglevel to debug: MONO_LOG_LEVEL=debug mono abc.exe
> Step 8: Then I am encountering the following message
> 
> /Library/Frameworks/Mono.framework/Versions/1.9/lib/mscorlib.dll is an
> invalid CIL image”

This is for a verion 1.9, when you're trying to run 1.9.1.

-g




More information about the Mono-osx mailing list