[MonoDevelop] Problem with "Add web reference" MacOs MonoDevel 2.2/2.4Beta
Michael Hutchinson
m.j.hutchinson at gmail.com
Sat May 29 00:25:03 EDT 2010
On Fri, May 28, 2010 at 5:29 PM, Wojtek <skarab77 at o2.pl> wrote:
>
> Hi All,
>
> I have to say in the begging that I am a mono dev newbie. I would like to
> use http://web-ngram.research.microsoft.com/Lookup.svc in my C# program. To
> do that I have tried to add it as my project web reference in the mono IDE.
> Unfortunately I keep getting an error: "Cannot cast from source type to
> destination type".
> Here is a full exception trace:
>
> System.InvalidCastException: Cannot cast from source type to destination
> type.
> at
> System.Web.Services.Description.ServiceDescription.AddExtensionNamespaces
> (System.Xml.Serialization.XmlSerializerNamespaces ns,
> System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection
> extensions) [0x0000c] in
...
> I would be great if somebody could give me an advice how to proceed now.
> Should I develop a ws client manually?
>
> I have tried out MonoDevel 2.2. and 2.4Beta for MacOS6. My mono framework
> version is MonoFramework-2.6.4_3.macos10.novell.x86.
This appears to be a bug in Mono's web services stack. Could you
please file a bug?
http://www.mono-project.com/Bugs
As a workaround, I suggest you using svcutil on Windows to generate
the proxy class, then copy the generated file to your Mac and add it
your project. If you visit the web service page in a web browser there
are instructions there.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Monodevelop-list
mailing list