fuzzy
June 24th, 2005, 05:23 PM
I have a GUI (windows.forms) project that runs in Windows fine. I've recently installed Ubuntu (sweet stuff) and discovered the backports project. So I now have Mono 1.1.7 and monodevelop 0.7 installed. I found several references to adding the following line to /etc/mono/config:
<dllmap dll="libX11" target="/usr/X11R6/lib/libX11.so.6.2"/>
And now when I run my project I get:
Unhandled Exception: System.TypeInitializationException:
An exception was thrown by the type initializer for System.Windows.Forms.XplatUI
---> System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.NotSupportedException: Either image
format is unknown or you don't have the required libraries for this format.
I seem to be stuck. I can't think my GUI is doing anything special (a couple edit boxes, a few buttons, a listbox, a combobox), at least nothing special enough to kick out such an off exception. I know the latest version of mono is 1.1.8, but it's not in backports as of yet. I'd prefer not to have to compile from source, and wanted to evaluate the portability of this project to linux for future considerations.
I have the detailed trace if that would help anyone. Any help or thoughts appreciated. Thanks.
- fuzzy
<dllmap dll="libX11" target="/usr/X11R6/lib/libX11.so.6.2"/>
And now when I run my project I get:
Unhandled Exception: System.TypeInitializationException:
An exception was thrown by the type initializer for System.Windows.Forms.XplatUI
---> System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.NotSupportedException: Either image
format is unknown or you don't have the required libraries for this format.
I seem to be stuck. I can't think my GUI is doing anything special (a couple edit boxes, a few buttons, a listbox, a combobox), at least nothing special enough to kick out such an off exception. I know the latest version of mono is 1.1.8, but it's not in backports as of yet. I'd prefer not to have to compile from source, and wanted to evaluate the portability of this project to linux for future considerations.
I have the detailed trace if that would help anyone. Any help or thoughts appreciated. Thanks.
- fuzzy