[Mono-list] MBAS fails on simple hello world application

Hervé Poussineau poussine@freesurf.fr
Tue, 9 Sep 2003 13:28:55 +0200 (CEST)


> Hi,
>
> I tried compiling the attached VB.NET file (a simple one line
> hello world application) using Mono 0.26 mbas on Redhat 9. It
> gives the following error:
>
> Unhandled Exception: System.ArgumentNullException: Argument
> cannot be null
> [...]
>
> Should I file a bug, or I am doing something wrong? Can anyone
> try compiling test.vb which is attached and see if they get
> any errors?
>
> Akhilesh Agarwal

I tried the same program on Windows (Mono 0.26)
It doesn't compile either, but I don't have the same exception :

C:\>mbas test.vb
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.Emit.AssemblyBuilder,string,string,bool,bool,boo
l)
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 <0x00130> 00 Mono.CSharp.CodeGen:Init (string,string,bool,string
[])
in <0x00088> 00 Mono.Languages.Driver:InitializeDebuggingSupport ()
in <0x000bc> 00 Mono.Languages.Driver:ResolveAllTypes ()
in <0x0003a> 00 Mono.Languages.Driver:CompileAll ()
in <0x00045> 00 Mono.Languages.Driver:MainDriver (string[])
in <0x0003d> 00 Mono.Languages.Driver:Main (string[])

Hervé


----------------------------------------------------------------
Ce service de mailing vous est offert par http://www.freesurf.fr.
FreeSurf, votre acces ADSL a partir de 29 euros/mois
http://www.freesurf.fr/adsl/