[Mono-winforms-list] Re: Mono-winforms-list Digest, Vol 2, Issue 6

David Cullen dcullen at intergate.com
Wed Jun 8 14:02:53 EDT 2005


Dear Paul,

mono-winforms-list-request at lists.ximian.com wrote:
> Message: 2
> Date: Wed, 08 Jun 2005 15:40:20 +0100
> From: Paul Johnson <paul at all-the-johnsons.co.uk>
> Subject: [Mono-winforms-list] An annoying problem
> To: winforms <mono-winforms-list at lists.ximian.com>
> Message-ID: <1118241620.5111.18.camel at localhost.localdomain>
> Content-Type: text/plain
> 
> Hi,
> 
> Whenever I try to run a program compiled against MWF, I keep getting the
> same error
> 
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the initializer for System.Windows.Forms.XplatUI --->
> System.DllNotFoundException: libX11.so.6.2
> 
> I know this has come up before and from what I remember when Miguel
> flagged it up was that there was a problem within XplatUI.
> 
> Is there a work around or will XplatUI be getting fixed sometime in the
> not too distant future?
> 
> TTFN
> 
> Paul

Look in your /prefix/etc/mono for config where "prefix" is your root 
prefix for you mono install.  There will be a file named config.  Change 
the line saying

         <dllmap dll="libX11" target="libX11.so.6.2">

to

         <dllmap dll="libX11" target="/usr/X11R6/lib/libX11.so.6.2">

or wherever your actual libX11.so.6.2 is.

--
David


More information about the Mono-winforms-list mailing list