Hi, add this line to you /etc/mono/config: <dllmap dll="gdiplus" target="/usr/lib/libgdiplus.so"/>
greetings El jue, 28-09-2006 a las 03:30 -0700, Norbert escribió: > Hi all, > > as normal user I can compile my application without > any errors. It uses Windows.Forms for graphical > output. But I cannot launch it: > mono test1.exe > fails and reports the errors which you can find at the > end of this message. As root I can launch the program > normally and it works fine. The system I use is Debian > Sarge and Mono 1.1.17.1 (installed by binary > installer). > > Thanks in advance! > Norbert > > 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: gdiplus.dll > 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 <0x00000> <unknown method> > at System.Drawing.Image.InitFromStream > (System.IO.Stream stream) [0x00000] > at System.Drawing.Bitmap..ctor > (System.Runtime.Serialization.SerializationInfo info, > StreamingContext context) [0x00000] > at <0x00000> <unknown method> > 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 <0x00000> <unknown method> > at test.test1..ctor () [0x00000] > at (wrapper remoting-invoke-with-check) > test.test1:.ctor () > at test.m.Main () [0x00000] > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list -- Carlos Ble www.shidix.com/carlosble _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
