[Mono-dev] Fwd: Web service client - SendOrPostCallback could not be loaded

Rafael Teixeira monoman at gmail.com
Wed Jul 26 08:53:57 EDT 2006


Yes, but sure you need to tell your embedded runtime what "assembly"
it should consider as the entry one.

The standalone runtime, parses the command line, loads the managed
exe, and registers it as the "entry" one. I don't know exactly where
and how it does it, but I recommend you to peruse the code, to mimic
it in your embedded solution.

Hope it helps,

On 7/26/06, Janne Rantala <janne.rantala at gmail.com> wrote:
>
> 2006/7/26, Atsushi Eno <atsushi at ximian.com>:
>
>
> > Hmm, then I don't think I should change OpenExeConfigurationInternal()
> > to skip the check for the argument exception, since you load your own
> > exe which has a corresponding config file and it is expected that
> > the config file should be loaded.
> >
> > There would be a way to load config from the runtime API, or it would
> > be a bug in the runtime that it does not set corresponding
> > AppDomainSetup.ConfigurationFile.
> >
> > Atsushi Eno
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> >
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
>
>
>
> Isn't the real problem that Assembly.GetEntryAssembly() returns null from
> embedded environment? It never gets to the point where config file is read
> in ConfigurationManager because of that.
>
>
> Janne
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw



More information about the Mono-devel-list mailing list