[Mono-osx] Easy way to get "plain" .NET app running on the Mac?
Geoff Norton
gnorton at novell.com
Wed May 21 16:13:47 EDT 2008
Did you install X11?
-g
On Wed, 2008-05-21 at 22:06 +0200, Weyert de Boer wrote:
> Hello!
>
> I just tried to run my application under MacOSX only no success yet.
> Apparently it can't find the GDI+ dll.
>
>
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for System.Windows.Forms.Form --->
> 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
> at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
> at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner
> exception stack trace ---
>
> at System.Drawing.Image.InitFromStream (System.IO.Stream stream)
> [0x00000]
> at System.Drawing.Image..ctor
> (System.Runtime.Serialization.SerializationInfo info, StreamingContext
> context) [0x00000]
> at System.Drawing.Bitmap..ctor
> (System.Runtime.Serialization.SerializationInfo info, StreamingContext
> context) [0x00000]
> at (wrapper managed-to-native)
> System.Reflection.MonoCMethod:InternalInvoke (object,object[])
> at System.Reflection.MonoCMethod.Invoke (System.Object obj,
> BindingFlags invokeAttr, System.Reflection.Binder binder,
> System.Object[] parameters, System.Globalization.CultureInfo culture)
> [0x00000] --- End of inner exception stack trace ---
>
> at System.Reflection.MonoCMethod.Invoke (System.Object obj,
> BindingFlags invokeAttr, System.Reflection.Binder binder,
> System.Object[] parameters, System.Globalization.CultureInfo culture)
> [0x00000]
> at System.Reflection.MethodBase.Invoke (System.Object obj,
> System.Object[] parameters) [0x00000]
> at System.Runtime.Serialization.ObjectRecord.LoadData
> (System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector
> selector, StreamingContext context) [0x00000]
> at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00000]
> at
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
> (System.IO.BinaryReader reader) [0x00000]
> at
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
> (System.IO.BinaryReader reader, Boolean readHeaders, System.Object&
> result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000]
> at
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
> (System.IO.Stream serializationStream,
> System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
> at
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
> (System.IO.Stream serializationStream) [0x00000]
> at System.Resources.ResourceReader.ReadNonPredefinedValue (System.Type
> exp_type) [0x00000]
> at System.Resources.ResourceReader.ReadValueVer1 (System.Type type)
> [0x00000]
> at System.Resources.ResourceReader.ResourceValue (Int32 index) [0x00000]
> at System.Resources.ResourceReader+ResourceEnumerator.get_Value ()
> [0x00000]
> at System.Resources.ResourceSet.ReadResources () [0x00000]
> at System.Resources.ResourceSet.GetObject (System.String name, Boolean
> ignoreCase) [0x00000]
> at System.Resources.ResourceManager.GetObject (System.String name,
> System.Globalization.CultureInfo culture) [0x00000]
> at System.Resources.ResourceManager.GetObject (System.String name)
> [0x00000]
> at System.Windows.Forms.Locale.GetResource (System.String name) [0x00000]
> at System.Windows.Forms.Form..cctor () [0x00000] --- End of inner
> exception stack trace ---
>
> at BrazilPrototype.MainForm..ctor () [0x00000]
> at (wrapper remoting-invoke-with-check) BrazilPrototype.MainForm:.ctor ()
> at BrazilPrototype.Program.Main () [0x00000]
>
>
> Yours,
> Weyert de Boer
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
More information about the Mono-osx
mailing list