[Mono-list] mcs 0.26 fails on Windows

Paul Paximadis ppaximadis@websoft.co.za
Mon, 15 Sep 2003 11:44:49 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C37B6E.01773256
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C37B6E.01773256"


------_=_NextPart_002_01C37B6E.01773256
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
I installed mono-0.26-win32-2.exe on a Windows 2000 Professional
machine.
When I try and compile a simple "Hello World" app. I get the errors
below:
This works fine with 'mono-0.25-win32-1.exe'.
=20
I have also compiled a simple gtk-sharp program ( compiles fine with
0.25 ) but when I try and execute with 'mono Hello.exe' windows
generates a unhadled exception etc.., yet I can run the program fine
with Microst.
Any ideas.
=20
Any help would be appreciated.
=20
Thanks,
Paul
=20

C:\C#Samples>mcs Hello.cs
=20
Unhandled Exception: System.TypeInitializationException: An exception
was thrown
 by the type initializer for System.Guid --->
System.ArgumentOutOfRangeException
: Argument is out of range
in <0x001e3> 00 System.DateTime:.ctor (bool,long)
in <0x00015> 00 System.DateTime:.ctor (long)
in <0x001be> 00 System.CurrentTimeZone:GetDaylightChanges (int)
in <0x00046> 00 System.TimeZone:IsDaylightSavingTime (System.DateTime)
in <0x0001e> 00 System.CurrentTimeZone:GetUtcOffset (System.DateTime)
in <0x00078> 00 System.DateTime:.ctor (bool,long)
in <0x0003b> 00 System.DateTime:get_Now ()
in <0x0004e> 00 .GuidState:.ctor (bool)
in <0x00026> 00 System.Guid:.cctor ()
--- End of inner exception stack trace ---
=20
in (unmanaged) 00 System.Guid:NewGuid ()
in <0x00093> 00 System.Reflection.Emit.ModuleBuilder:.ctor
(System.Reflection.Em
it.AssemblyBuilder,string,string,bool,bool,bool)
in <0x00159> 00
System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule (stri
ng,string,bool,bool)
in <0x00021> 00
System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule (stri
ng,string,bool)
in <0x000d0> 00 Mono.CSharp.CodeGen:Init (string,string,bool)
in <0x006be> 00 Mono.CSharp.Driver:MainDriver (string[])
in <0x0001b> 00 Mono.CSharp.Driver:Main (string[])

------_=_NextPart_002_01C37B6E.01773256
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial=20
size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial size=3D2>I =
installed=20
mono-0.26-win32-2.exe on a Windows 2000 Professional=20
machine.</FONT></SPAN></DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial size=3D2>When I =
try and=20
compile a simple "Hello World" app. I get the errors =
below:</FONT></SPAN></DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial size=3D2>This =
works fine with=20
'mono-0.25-win32-1.exe'.</FONT></SPAN></DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial size=3D2>I have =
also compiled=20
a simple gtk-sharp program ( compiles fine with 0.25 ) but when I try =
and=20
execute with 'mono Hello.exe' windows generates a unhadled exception =
etc.., yet=20
I can run the program fine with Microst.</FONT></SPAN></DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial size=3D2>Any=20
ideas.</FONT></SPAN></DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial size=3D2>Any =
help would be=20
appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial=20
size=3D2>Paul</FONT></SPAN></DIV>
<DIV><SPAN class=3D182314009-15092003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV><SPAN =
class=3D182314009-15092003><FONT face=3DArial=20
size=3D2>
<DIV><BR>C:\C#Samples&gt;mcs Hello.cs</DIV>
<DIV>&nbsp;</DIV>
<DIV>Unhandled Exception: System.TypeInitializationException: An =
exception was=20
thrown<BR>&nbsp;by the type initializer for System.Guid ---&gt;=20
System.ArgumentOutOfRangeException<BR>: Argument is out of range<BR>in=20
&lt;0x001e3&gt; 00 System.DateTime:.ctor (bool,long)<BR>in =
&lt;0x00015&gt; 00=20
System.DateTime:.ctor (long)<BR>in &lt;0x001be&gt; 00=20
System.CurrentTimeZone:GetDaylightChanges (int)<BR>in &lt;0x00046&gt; 00 =

System.TimeZone:IsDaylightSavingTime (System.DateTime)<BR>in =
&lt;0x0001e&gt; 00=20
System.CurrentTimeZone:GetUtcOffset (System.DateTime)<BR>in =
&lt;0x00078&gt; 00=20
System.DateTime:.ctor (bool,long)<BR>in &lt;0x0003b&gt; 00=20
System.DateTime:get_Now ()<BR>in &lt;0x0004e&gt; 00 .GuidState:.ctor=20
(bool)<BR>in &lt;0x00026&gt; 00 System.Guid:.cctor ()<BR>--- End of =
inner=20
exception stack trace ---</DIV>
<DIV>&nbsp;</DIV>
<DIV>in (unmanaged) 00 System.Guid:NewGuid ()<BR>in &lt;0x00093&gt; 00=20
System.Reflection.Emit.ModuleBuilder:.ctor=20
(System.Reflection.Em<BR>it.AssemblyBuilder,string,string,bool,bool,bool)=
<BR>in=20
&lt;0x00159&gt; 00 =
System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule=20
(stri<BR>ng,string,bool,bool)<BR>in &lt;0x00021&gt; 00=20
System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule=20
(stri<BR>ng,string,bool)<BR>in &lt;0x000d0&gt; 00 =
Mono.CSharp.CodeGen:Init=20
(string,string,bool)<BR>in &lt;0x006be&gt; 00 =
Mono.CSharp.Driver:MainDriver=20
(string[])<BR>in &lt;0x0001b&gt; 00 Mono.CSharp.Driver:Main=20
(string[])</FONT></SPAN></DIV></BODY></HTML>
=00
------_=_NextPart_002_01C37B6E.01773256--

------_=_NextPart_001_01C37B6E.01773256
Content-Type: application/octet-stream;
	name="Hello.cs"
Content-Transfer-Encoding: base64
Content-Description: Hello.cs
Content-Disposition: attachment;
	filename="Hello.cs"

dXNpbmcgU3lzdGVtOw0KDQpwdWJsaWMgY2xhc3MgSGVsbG8NCnsNCiAgICBwdWJsaWMgc3RhdGlj
IHZvaWQgTWFpbiAoc3RyaW5nW10gYXJncykNCiAgICB7DQogICAgICAgIENvbnNvbGUuV3JpdGVM
aW5lKCAiSGVsbG8gV29ybGQiICk7DQogICAgfQ0KfQ0K

------_=_NextPart_001_01C37B6E.01773256--