[Mono-dev] Error in compiling using mcs

Zoltan Varga vargaz at gmail.com
Wed Jan 14 18:54:33 EST 2009


Hi,

  You are running mcs.exe on the .net runtime, which is not supported.
Either run it
using 'mono mcs.exe', or using the 'mcs.bat' file.

           Zoltan

On Thu, Jan 15, 2009 at 12:48 AM, Mudit Vaidya <muditvaidya at gmail.com> wrote:
> 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
>
>
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>


More information about the Mono-devel-list mailing list