[Mono-winforms-list] this worked great under Fedora 7...error message under Fedora 8

landon kelsey landonmkelsey at hotmail.com
Fri Dec 21 12:57:08 EST 2007


Thanks!

results!

[landon4 at LMKIII c#]$ MONO_LOG_LEVEL=info
[landon4 at LMKIII c#]$ MONO_LOG_MASK=dll
[landon4 at LMKIII c#]$ gmcs Form1.cs -r:System.Windows.Forms -r:System.Drawing -r:System.Data
[landon4 at LMKIII c#]$ mono Form1.exe

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  
  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  
  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  
  at calculator.Form1..ctor () [0x00000]
  at (wrapper remoting-invoke-with-check) calculator.Form1:.ctor ()
  at calculator.Form1.Main () [0x00000]
[landon4 at LMKIII c#]$                                                   
________________________________
> Date: Fri, 21 Dec 2007 12:48:15 -0500
> From: joncham at gmail.com
> To: landonmkelsey at hotmail.com
> Subject: Re: [Mono-winforms-list] this worked great under Fedora 7...error message under Fedora 8
> CC: keenriser at planet.nl; mono-winforms-list at lists.ximian.com
> 
> Run ldd on your libgdiplus.so. It can't find that dll, or something it depends on.
> 
> Also, run you app with these environment variables set:
> 
> MONO_LOG_LEVEL=info
> MONO_LOG_MASK=dll
> 
> Post the output from the above two suggestions.
> 
> Thanks,
> Jonathan
> 
> On Dec 21, 2007 12:44 PM, landon kelsey <landonmkelsey at hotmail.com> wrote:
> 
> THANKS!!!!!  but...
> 
> LMKIII (root) /var/www/html [1002]>yum install libgdiplus
> livna                     100% |=========================| 2.1 kB    00:00
> primary.sqlite.bz2        100% |=========================| 172 kB    00:01
> fedora                    100% |=========================| 2.1 kB    00:00
> updates                   100% |=========================| 2.3 kB    00:00
> primary.sqlite.bz2        100% |=========================| 1.0 MB    00:03
> Setting up Install Process
> Parsing package install arguments
> Package libgdiplus - 1.2.5-1.fc8.i386 is already installed.                       <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> Nothing to do
> LMKIII (root) /var/www/html [1003]>
> 
> as I said, all my C# stuff worked without change under Fedora 7
> 
> Many Linux guys hate anything even remotely related to MS.
> 
> I was very happy to be able to compile/run C# under Linux.
> 
> I was blown away that I could even open the .sln file and compile/run!
> 
> Whoever programmed this package did a marvelous feat!
> 
> I'll keep thinking of solutions!
> 
> The code doesn't run even using the command line!
> 
> gmcs does compile and run without System.Windows.Forms
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ----------------------------------------
>> From: keenriser at planet.nl
>> To: landonmkelsey at hotmail.com
>> CC: mono-winforms-list at lists.ximian.com 
>> Subject: RE: [Mono-winforms-list] this worked great under Fedora 7...error message under Fedora 8
>> Date: Fri, 21 Dec 2007 08:12:54 +0100
>>
>> You seem to be missing the package libgdiplus. I'm not sure what the Fedora
>> package is called, but try something like 'yum install libgdiplus' (if that
>> is the correct syntax for yum).
>>
>> -----Original Message-----
>> From: mono-winforms-list-bounces at lists.ximian.com
>> [mailto:mono-winforms-list-bounces at lists.ximian.com] On Behalf Of landon
>> kelsey
>> Sent: vrijdag 21 december 2007 1:33
>> To: Jonathan Pobst
>> Cc: mono-winforms-list at lists.ximian.com
>> Subject: Re: [Mono-winforms-list] this worked great under Fedora 7...error
>> message under Fedora 8
>>
>>
>> thanks...here it is: (zero compile errors....plenty warnings due to unused
>> variables)
>>
>> I suspect the yum procedure does not completely update everything!
>>
>>
>>
>> Unhandled Exception: System.TypeInitializationException: An exception was
>> thrown by the type initializer for System.Windows.Forms.XplatUI --->
>> 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.GdiplusStartupOut
>> put&)
>>   at System.Drawing.GDIPlus..cctor () [0x0006c] in
>> /builddir/build/BUILD/mono- 1.2.5.1/mcs/class/System.Drawing/System.Drawing/g
>> dipFunctions.cs:107 --- End of inner exception stack trace ---
>>
>>   at
>>   at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] in
>> /builddir/build/BUILD/mono-1.2.5.1/mcs/class/System.Drawing/System.Drawing/G
>> raphics.cs:1685
>>   at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle)
>> [0x0006a] in
>> /builddir/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Wi
>> ndows.Forms/XplatUIX11.cs:418
>>   at System.Windows.Forms.XplatUIX11..ctor () [0x00032] in
>> /builddir/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Wi 
>> ndows.Forms/XplatUIX11.cs:247
>>   at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in
>> /builddir/build/BUILD/mono- 1.2.5.1/mcs/class/Managed.Windows.Forms/System.Wi
>> ndows.Forms/XplatUIX11.cs:276
>>   at System.Windows.Forms.XplatUI..cctor () [0x00075] in
>> /builddir/build/BUILD/mono- 1.2.5.1/mcs/class/Managed.Windows.Forms/System.Wi
>> ndows.Forms/XplatUI.cs:95 --- End of inner exception stack trace ---
>>
>>   at
>>   at System.Windows.Forms.Application.EnableVisualStyles () [0x00005] in
>> /builddir/build/BUILD/mono-1.2.5.1/mcs/class/Managed.Windows.Forms/System.Wi
>> ndows.Forms/Application.cs:380
>>   at ftpWindows.Program.Main () [0x00000] in
>> /home/landon4/monodevelop/ftpWindows/ftpWindows/Program.cs:15
>>
>>
>>
>> ----------------------------------------
>>> Date: Thu, 20 Dec 2007 16:33:31 -0600
>>> From: monkey at jpobst.com
>>> To: landonmkelsey at hotmail.com
>>> CC: mono-winforms-list at lists.ximian.com
>>> Subject: Re: [Mono-winforms-list] this worked great under Fedora 7...error
>> message under Fedora 8
>>>
>>> Can you post the full error?
>>>
>>> Jonathan
>>>
>>>
>>> landon kelsey wrote:
>>>> Now when I run I get this (and more)
>>>>
>>>> Yes I have reference to System.Windows.Forms and others
>>>>
>>>> Built under the mono develop sde
>>>>
>>>> at
>>>>   at System.Windows.Forms.Application.EnableVisualStyles () [0x00005] in
>> /builddir/build/BUILD/mono- 1.2.5.1/mcs/class/Managed.Windows.Forms/System.Wi
>> ndows.Forms/Application.cs:380
>>>>   at ftpWindows.Program.Main () [0x00000] in
>> /home/landon4/monodevelop/ftpWindows/ftpWindows/Program.cs:15
>>>>
>>>>
>>>> same problem building and running under command line
>>>>
>>>>
>>>> _________________________________________________________________
>>>> Get the power of Windows + Web with the new Windows Live.
>>>> http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007
>>>> _______________________________________________
>>>> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>>>
>>>>
>>>
>>
>> _________________________________________________________________
>> The best games are on Xbox 360.  Click here for a special offer on an Xbox
>> 360 Console.
>> http://www.xbox.com/en-US/hardware/wheretobuy/
>> _______________________________________________
>> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>>
> 
> _________________________________________________________________
> Don't get caught with egg on your face. Play Chicktionary!
> http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list

_________________________________________________________________
Get the power of Windows + Web with the new Windows Live.
http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007


More information about the Mono-winforms-list mailing list