[Mono-dev] Error in compiling using mcs

Mudit Vaidya muditvaidya at gmail.com
Wed Jan 14 18:48:43 EST 2009


Hello

I have built mcs from source. Now, when I try to compile a .cs file 
using the mcs.exe built from source, I get the following errors :

Unhandled Exception: System.ArgumentException: Illegal enum value: 2050.
Parameter name: access
   at System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name, 
Assembly
BuilderAccess access, String dir, Evidence evidence, PermissionSet 
requiredPermi
ssions, PermissionSet optionalPermissions, PermissionSet 
refusedPermissions, Sta
ckCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes)
   at System.AppDomain.DefineDynamicAssembly(AssemblyName name, 
AssemblyBuilderA
ccess access, String dir)
   at Mono.CSharp.CodeGen.Init(String name, String output, Boolean 
want_debuggin
g_support) in 
C:\Users\MICROSOFT\Desktop\mono-2.0.1\mono-2.0.1\mcs\mcs\codegen.c
s:line 144
   at Mono.CSharp.Driver.Compile() in 
C:\Users\MICROSOFT\Desktop\mono-2.0.1\mono
-2.0.1\mcs\mcs\driver.cs:line 1624
   at Mono.CSharp.Driver.Main(String[] args) in 
C:\Users\MICROSOFT\Desktop\mono-
2.0.1\mono-2.0.1\mcs\mcs\driver.cs:line 308

How can I fix them ?
Thanks !
Mudit







More information about the Mono-devel-list mailing list