[Mono-winforms-list] Value is not a convertibleobject:System.Drawing.Bitmap to System.Drawing.Image

Rolf Bjarne Kvinge rolflists at ya.com
Mon Oct 29 14:47:23 EDT 2007



> -----Original Message-----
> From: mono-winforms-list-bounces at lists.ximian.com [mailto:mono-
> winforms-list-bounces at lists.ximian.com] On Behalf Of Andrus
> Sent: lunes, 29 de octubre de 2007 18:38
> To: mono-winforms-list at lists.ximian.com
> Subject: Re: [Mono-winforms-list] Value is not a
> convertibleobject:System.Drawing.Bitmap to System.Drawing.Image
> 
> I refreshed my 1.2.5 installation from monocharge-20071029
> This refreshes mscorlib.dll also
> 
> After that I cannot use mono anymore:
> 
> mono myapp.exe returns:
> 
> Corlib not in sync with this runtime: expected corlib version 58, found
> 60.
> Loaded from: C:\PROGRA~1\MONO-1~1.5\lib\mono\2.0\mscorlib.dll
> Download a newer corlib or a newer runtime at http://www.go-
> mono.com/daily.
> 
> 
> How to try latest changes without compiling ?
> 

You can't.

The monocharge files are only a last-try solution to fix your mono-install
if it's broken, it's not supported and it will likely fail.

If you still want to try, I suggest reverting your mono install to 1.2.5,
find the assemblies you want to update (only) in the monocharge archive, and
put them manually in your gac.

If you're only interested in
System.Windows.Forms.dll/System.Drawing.dll/libgdiplus, it might actually
work (with some luck), but if it doesn't you'll have to use SVN and compile
it yourself.
 
Rolf
 
> Andrus.
> 
> ----- Original Message -----
> From: "Gert Driesen" <gert.driesen at telenet.be>
> To: "'Andrus'" <eetasoft at online.ee>; <mono-winforms-
> list at lists.ximian.com>
> Sent: Sunday, October 28, 2007 5:45 PM
> Subject: Re: [Mono-winforms-list] Value is not a
> convertibleobject:System.Drawing.Bitmap to System.Drawing.Image
> 
> 
> > Andrus,
> >
> > This should be fixed in SVN.
> >
> > Can you try again against SVN HEAD?
> >
> > Gert
> >
> > -----Original Message-----
> > From: mono-winforms-list-bounces at lists.ximian.com
> > [mailto:mono-winforms-list-bounces at lists.ximian.com] On Behalf Of
> Andrus
> > Sent: zaterdag 27 oktober 2007 21:12
> > To: mono-winforms-list at lists.ximian.com
> > Subject: [Mono-winforms-list] Value is not a convertible
> > object:System.Drawing.Bitmap to System.Drawing.Image
> >
> > My Winforms C#  2005 Express .NET 2 application running under MONO
> 1.2.5
> > causes exception
> >
> > Value is not a convertible object: System.Drawing.Bitmap to
> > System.Drawing.Image
> >
> > Stack trace:   at System.Convert.ToType (System.Object value,
> System.Type
> > conversionType, IFormatProvider provider) [0x00000]
> >  at System.Convert.ChangeType (System.Object value, System.Type
> > conversionType) [0x00000]
> >  at System.ComponentModel.ComponentResourceManager.ApplyResources
> > (System.Object value, System.String objectName,
> > System.Globalization.CultureInfo culture) [0x00000]
> >  at System.ComponentModel.ComponentResourceManager.ApplyResources
> > (System.Object value, System.String objectName) [0x00000]
> >  at MyApp.MainForm.InitializeComponent () [0x00000]
> >  at MyApp.MainForm..ctor () [0x00000]
> >  at (wrapper remoting-invoke-with-check) MyApp.MainForm:.ctor ()
> >  at  MyApp.AppMainEntry.MainLoop () [0x00000] ...
> >
> > How to fix ?
> >
> > Is this known issue ?
> >
> > My application is complied in debug mode in VCSE 2005.
> > How to force MONO to show line numbers in stack trace so I can find
> which
> > ApplyResources () call causes exception ?
> >
> >
> > Andrus.
> >
> > _______________________________________________
> > Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> >
> > _______________________________________________
> > Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.15.12/1097 - Release Date:
> 28/10/2007 13:58




More information about the Mono-winforms-list mailing list