[Mono-dev] Problem with google calendar authentication using embedded mono in app
Robert Jordan
robertj at gmx.net
Mon Mar 23 16:15:11 EDT 2009
Chenthill wrote:
> I updated to the last mono builds using monocharge and still see the problem.
> Am loading the assembly from a library. So am not using mono_jit_exec..
You must use mono_jit_exec. Otherwise the runtime does not have
sane defaults for the main assembly, which leads to errors whenever
Assembly.GetExecutingAssembly() is invoked.
Just add this code to the aforementioned assembly:
internal class EntryPoint {static void Main () {} }
and call mono_jit_exec on it before starting to use it. The assembly
does not need to be an .exe.
Robert
More information about the Mono-devel-list
mailing list