[Mono-dev] problem compiling on cygwin.

Lucas Meijer lucas at lucasmeijer.com
Fri Nov 28 14:23:16 EST 2008

Robert Jordan wrote:
>> I'm compiling mono on windows in sygwin.
>> After a few bumps on the road that google and the mono-devel archive took
>> care of, I'm now running into this one:
>> <snip>
>> MCS     [basic] mcs.exe
> This is a MS.NET exception:
>> Unhandled Exception: System.ArgumentException: Illegal enum value: 2051.
>> Parameter name: access
>>    at System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name,
> It seems that you've somehow managed to run mcs on MS.NET's runtime.
> This is not supported and not intended but it could be caused
> by this:
>> When I do a "which mcs" I get:
>> /cygdrive/h/Program\ Files/Mono-2.0/bin/mcs
>> which seems okay to me.

I uninstalled mono, and reinstalled it at H:\Mono-2.0.  I updated my 
.bashrc, source'd it,   reran autogen.sh, and ran
make.  I get the exact same error.   At least I now realizes this error 
actually comes from the CLR,  instead from the mono runtime.   Now to 
find out why this is happening.

Bye, Lucas

More information about the Mono-devel-list mailing list