[Mono-dev] Web service client - SendOrPostCallback could not be loaded
Robert Jordan
robertj at gmx.net
Fri Jul 7 12:11:39 EDT 2006
Janne Rantala wrote:
> 2006/7/7, Robert Jordan <robertj at gmx.net>:
>>
>> Janne Rantala wrote:
>> > 2006/6/30, Robert Jordan <robertj at gmx.net>:
>> >>
>> >> Janne Rantala wrote:
>> >> > 2006/6/30, Miguel de Icaza <miguel at ximian.com>:
>> >> >>
>> >> >> Hello,
>> >> >>
>> >> >> > When I try to initialize client from embedded Mono, I got this
>> error
>> >> >> > stating that SendOrPostCallback could not be loaded?
>> >> >>
>> >> >> It means that this method has not been implemented in Mono yet.
>> >> >>
>> >> >> Miguel
>> >> >>
>> >> >
>> >> > How is it possible? Few days ago I got that other error I mentioned
>> >> with
>> >>
>> >> > same assembly.
>> >>
>> >> You have to load a 2.0 assembly into the embedded runtime explicitly
>> >> and before calling any corlib methods with mono_runtime_invoke (),
>> >> otherwise the runtime will assume the 1.0 corlib.
>> >>
>> >> Robert
>> >>
>> >> _______________________________________________
>> >> Mono-devel-list mailing list
>> >> Mono-devel-list at lists.ximian.com
>> >> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>> >>
>> >
>> > Hi!
>> >
>> > It certainly does load mscorlib and other assemblies version
>> 1.0.5000.0.
>> I
>> > thought that Mono determines which mscorlib to load by the assembly I'm
>> > running?
>> >
>> > Can I somehow force Mono to use 2.0 assemblies from embedded
>> environment?
>>
>> W/out some code it's impossible to deduce what's going wrong.
>> Could you please your code that initializes the runtime?
>>
>> Robert
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>
> Does it have anything to do with this that I'm using Mono from
> mono-1.dll? I
> tested with embedded samples that come with Mono project and in those Mono
> loads 2.0 corlib with same assembly.
>
> Actually when using mono-1.dll wrong corlib is loaded when I call
> mono_jit_init, and at that point I haven't even introduced the assembly I'm
> about to use.
Under Linux & Windows+Cygwin+gcc it makes no difference.
Are you using VC? I'm out if so, because I never tried to
embed using VC.
Robert
More information about the Mono-devel-list
mailing list