[Mono-dev] Web service client - SendOrPostCallback could not be loaded
Janne Rantala
janne.rantala at gmail.com
Fri Jun 30 04:11:16 EDT 2006
Hi,
I created simple web service client which tries to access
net.xmethods.www.CurrencyExchangeService. Assembly is created with Visual
Studio 2005 and it works fine in that environment.
When I try to initialize client from embedded Mono, I got this error stating
that SendOrPostCallback could not be loaded?
** WARNING **: The class System.Threading.SendOrPostCallbac
k could not be loaded, used in mscorlib, Version=2.0.0.0 , Culture=neutral,
Publi
cKeyToken=b77a5c561934e089
Unhandled Exception: System.TypeLoadException: Could not load type '
System.Threa
ding.SendOrPostCallback' from assembly 'mscorlib, Version=2.0.0.0 ,
Culture=neutr
al, PublicKeyToken=b77a5c561934e089'.
Another error about web services is this which I usually get when trying to
initialize client:
Unhandled Exception: System.TypeInitializationException : An exception was
thrown
by the type initializer for System.Xml.Serialization.XmlSerializer --->
System.
ArgumentException: exePath must be specified when not running inside a stand
alo
ne exe.
in <0x00253>
System.Configuration.ConfigurationManager:OpenExeConfigurationInter
nal (ConfigurationUserLevel userLevel, System.Reflection.Assemblycalling_assemb
ly, System.String exePath)
in <0x0003b>
System.Configuration.ClientConfigurationSystem:System.Configuration
.Internal.IInternalConfigSystem.GetSection (System.String configKey)
in <0x0001f> System.Configuration.ConfigurationManager:GetSection (
System.String
sectionName)
in <0x0001f> System.Configuration.DefaultConfig:GetConfig (System.Stringsection
Name)
in <0x00017> System.Configuration.ConfigurationSettings:GetConfig (
System.String
sectionName)
in <0x001cd> System.Xml.Serialization.XmlSerializer:.cctor ()--- End of
inner ex
ception stack trace ---
I've tried to find solution to this exePath -problem for quite long now, so
if someone could give me a hint where to keep looking, that would be great
:)
Thanks for your help,
Janne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060630/7d58749d/attachment.html
More information about the Mono-devel-list
mailing list