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

Janne Rantala janne.rantala at gmail.com
Tue Jul 25 11:03:17 EDT 2006


2006/7/25, Robert Jordan <robertj at gmx.net>:
>
> Hey,
>
> Atsushi Eno wrote:
> > Hi,
> >
> > Janne Rantala wrote:
> >> 2006/7/25, Atsushi Eno <atsushi at ximian.com>:
> >>> Hi,
> >>>
> >>> Janne Rantala wrote:
> >>>>>>> 2006/7/7, Atsushi Eno <atsushi at ximian.com>:
> >>>>>>>
> >>>>>>>> I made a fix in svn, but I have no test case for embedded
> >>> scenario.
> >>>>>>>> If you are using mono from svn, can you please try it?
> >>>>>>>>
> >>>>>>>> Atsushi Eno
> >>>>>>>>
> >>>>>
> >>>> Hi again,
> >>>>
> >>>> I tried that web service from embedded mono -problem again. I still
> get
> >>>> that
> >>>> "exePath must be specified when not running inside a stand alone
> exe."
> >>>> message. Mono was built today from svn.
> >>> In the previous message you wrote that you hit different error
> >>> which indicates that it could successfully reached the point
> >>> to read configuration XML file.
> >>>
> >>> Since I haven't changed any System.Configuration code, the problem
> >>> would rather inside Assembly.GetCallingAssembly() which I don't
> >>> know much (try this method and see if it returns something non-null),
> >>> or make sure that you don't use some older version of mono.
> >>>
> >>> Atsushi Eno
> >>>
> >> Hi Atsushi,
> >>
> >> Thanks for your reply. Assembly.GetCallingAssembly() returns "WSTest,
> >> Version 2.0.0.0, Culture=neutral". That seems to be ok? The dll I'm
> >> using is
> >> the latest one I built from svn.
> >
> > OK, try the following steps:
> >
> > - change the error message in OpenExeConfigurationInternal()
> >    in the first "throw ArgumentException" in ConfigurationManager.cs
> >    in mcs/class/System.Configuration/System.Configuration, to
> >    whatever you like.
> > - Rebuild all, and install
> > - Run your application and make sure that your change is reflected.
> >
> > Your stacktrace is indeed weird to me. There is a line
> >
> >  >
> >
> System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
> > (System.String configKey) [0x00000]
> >
> > which indicates that it invokes a method in an *interface* without
> > any implementation class information. It makes me impossible to
> > precisely keep track of the actual code execution (I haven't
> > ever experienced such a situation).
> >
> > There is nothing other than ClientConfigurationSystem that invokes
> > OpenExeConfigurationInternal(), thus I can only guess that the
> > invoker is ClientConfigurationSystem, which uses GetCallingAssembly()
> > which you said does not return null.
>
> This is probably a problem of the VS.NET build (IIRC, Janne is using
> VS.NET).
>
> I was never able to  reproduce this bug under cygwin (or Linux)
> since the first time Janne reported it (a couple of months ago).
>
> Robert
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>

Hi,

The assembly I'm using is indeed built with VS.NET, but this error occurs in
Mono built with Cygwin and in one built with VS.NET. If that's what you
meant?

Janne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060725/94184b35/attachment.html 


More information about the Mono-devel-list mailing list