[Mono-list] Unable to run mcs (or mono?) 0.26 on french Windows
Daniel Morgan
danmorg@comcast.net
Wed, 3 Sep 2003 07:53:53 -0400
This happens to me too on a Windows 2000 Professinal machine in the US.
-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Hervé Poussineau
Sent: Monday, September 01, 2003 5:38 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] Unable to run mcs (or mono?) 0.26 on french Windows
Hello,
When I want to compile a very simple program, mcs crashes.
Program:
class MainClass
{
public static void Main()
{
System.Console.WriteLine("Hello World!");
}
}
Command line:
mcs hello.cs
Error:
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 ---
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[])
Other tries :
* same error when I compile with mono and mcs :
mono "c:\Program Files\Mono-0.26\bin\mcs.exe" hello.cs
* no problem when I compile with mint and mcs :
mint "c:\Program Files\Mono-0.26\bin\mcs.exe" hello.cs
* no problem when I compile with csc, and I execute it with mono.
So I don't know if the problem comes from mcs or from mono...
Additional informations:
actual date time : 1 september 2003 23:24
daylight saving : on
short date format : DD/MM/YYYY
time format : HH:MM:SS (0<=HH<=23)
Are you aware of this problem, and what can I do?
Hervé
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list