[Mono-winforms-list] Problem running WinForm app on Linux under Wine

Brian Berns Berns@rdacorp.com
Wed, 29 Oct 2003 14:13:22 -0500


This is a multi-part message in MIME format.

------_=_NextPart_001_01C39E50.B8DD662A
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C39E50.B8DD662A"


------_=_NextPart_002_01C39E50.B8DD662A
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

I have a working Wine installation and am able to successfully compile a
WinForm app via mcs.  When I try to run the app via "mono winform.exe",
I get several of the following errors:

	** (winform.exe:2095): WARNING **: Failed to load library
./libuser32.dll.sl (user32.dll): ./libuser32.dll.so: cannot open shared
object file: No such file or directory

Followed by this error:

	Unhandled Exception: System.TypeInitializerException: An
exception was thrown by the type initializer for
System.Windows.Forms.Control ---> System.MissingMethodException... etc.

Any suggestions?
=20
Brian Berns
Senior Consultant
RDA
  <http://www.rdacorp.com/services/process.asp>=20
=20

------_=_NextPart_002_01C39E50.B8DD662A
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D146250619-29102003><FONT face=3D"Trebuchet MS" =
size=3D2>I have a=20
working Wine installation and&nbsp;am able to successfully compile a =
WinForm app=20
via mcs.&nbsp; When I try to run the app via "mono winform.exe", I get =
several=20
of the following errors:</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><SPAN class=3D146250619-29102003><FONT face=3D"Trebuchet MS" =
size=3D2>**=20
  (winform.exe:2095): WARNING **: Failed to load library =
./libuser32.dll.sl=20
  (user32.dll): ./libuser32.dll.so: cannot open shared object file: No =
such file=20
  or directory</FONT></SPAN></DIV></BLOCKQUOTE>
<DIV><SPAN class=3D146250619-29102003><FONT face=3D"Trebuchet MS" =
size=3D2>Followed by=20
this error:</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><SPAN class=3D146250619-29102003><FONT face=3D"Trebuchet MS" =
size=3D2>Unhandled=20
  Exception: System.TypeInitializerException: An exception was thrown by =
the=20
  type initializer for System.Windows.Forms.Control ---&gt;=20
  System.MissingMethodException... etc.</FONT></SPAN></DIV></BLOCKQUOTE>
<DIV><FONT face=3D"Trebuchet MS" size=3D2><SPAN =
class=3D146250619-29102003>Any=20
suggestions?</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" size=3D2></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3D"Trebuchet MS" size=3D2><EM>Brian=20
Berns</EM></FONT></DIV>
<DIV align=3Dleft><FONT face=3D"Trebuchet MS" size=3D2><EM>Senior=20
Consultant</EM></FONT></DIV>
<DIV align=3Dleft><FONT face=3D"Trebuchet MS" =
size=3D2><EM>RDA</EM></FONT></DIV>
<DIV align=3Dleft><A =
href=3D"http://www.rdacorp.com/services/process.asp"><IMG=20
alt=3D"ITFlightPlan - www.rdacorp.com" hspace=3D0=20
src=3D"http://www.rdacorp.com/services/emailimages/itflightplan2_14_med.g=
if"=20
align=3Dbaseline border=3D0></A></DIV>
<DIV><FONT face=3D"Trebuchet MS" =
size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_002_01C39E50.B8DD662A--

------_=_NextPart_001_01C39E50.B8DD662A
Content-Type: image/gif;
	name="itflightplan2_14_med.gif"
Content-Transfer-Encoding: base64
Content-Description: itflightplan2_14_med.gif
Content-Location: http://www.rdacorp.com/services/emailimages/itflightplan2_14_med.gif

R0lGODlhyABNAPf/AP///wgICBAQEBgYGCEhISkpKTExMTk5OUJCQkpKSlJSUlpaWmNjY2tra3Nz
c3t7e4SEhIyMjJSUlJycnKWlpa2trbW1tb29vcb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