[Mono-dev] CodeDomProvider.CreateProvider fails on Windows

Robert Jordan robertj at gmx.net
Thu Jul 29 05:22:24 EDT 2010


On 29.07.2010 09:25, Frank Fuchs wrote:
> Hi,
>
> I'd like to compile .cs files at runtime. Following the tip frome here
> http://lists.ximian.com/pipermail/mono-devel-list/2010-July/035505.html I'm
> able to do that on my Mac. On Windows (win 7 enterprise) however I do not
> manage to get it running.
> The program exits with exit code 01 right when calling
> CodeDomProvider.CreateProvider("C#"). I'm using mono in a relocated setup
> (no admin rights on the windows machine).
> Strangely the program executes well when I call the assembly with mono from
> command line, but fails when calling it from the embedding c++ application

Are you calling mono_set_dirs() [1] from C++?

Mono for Windows needs this call because libmono cannot detect
relocations under Windows.

Robert

[1] http://preview.tinyurl.com/39d57tg



More information about the Mono-devel-list mailing list