[Mono-dev] Web service client - SendOrPostCallback could not be loaded
Atsushi Eno
atsushi at ximian.com
Mon Jul 3 05:45:32 EDT 2006
Hello,
Janne Rantala wrote:
> 2006/6/30, Robert Jordan <robertj at gmx.net>:
>>
>> Robert Jordan wrote:
>> > 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.
>>
>> Err, and before looking up any corlib classes, of course.
>>
>> Robert
>
>
>
> Hello Robert,
>
> Thanks for your replies, Rafael and Robert. I'm pretty sure that the
> assembly that I'm using is version 2.0 and it is the first assembly that
> gets loaded when Mono is started.
>
> And also doesn't that error message in my first message mean that mscorlib
> version is 2.0.0.0?
It doesn't. The error message you got does not imply that mono loaded
2.0 mscorlib. It just tells you that the assembly you are using
requested the runtime to load 2.0 mscorlib, and the runtime raised the
error you received, in response to that request.
I assume that you don't use xsp2 (instead of xsp) which is required
to run 2.0 code (you use SendOrPostCallback which is only in 2.0).
Atsushi Eno
More information about the Mono-devel-list
mailing list