[Mono-list] Web.Services.Description.ServiceDescription.Read Type Initializer Exception

Brian Kesecker bkesecker at augustasystems.com
Mon Apr 26 12:15:47 EDT 2010


The setup:

Non-VM openSuSE 11.2
Mono 2.6.3 with nearly all other supporting libraries up-to-date (the
exception is gtk-complete)
Visual Studio 2008 and MonoVS 1.0 running on Windows 7 remotely debugging to
the above machine

The problem:

System.Web.Services.Description.ServiceDescription.Read(MyWebResponseStream)
throws a type initializer exception on every web service I've tried (where
MyWebResponseStream is a stream returned from a valid WebResponse object). 
All the web services I've tried work fine with the same code under Windows. 
There are differences in the debugging information returned by Mono vs.
Windows (attached/inserted as an image below).

http://n4.nabble.com/forum/FileDownload.jtp?type=n&id=2065397&name=DebuggingSnapshots.png 

Some thoughts:

Type initializer sounds to me like it couldn't find a definition for a type
that is in the returned XML/WSDL data.
Maybe I'm missing:
Something that should be called/added to
Web.Services.Description.ServiceDescription?
Something global that is specified differently in Mono vs. .NET?
Permissions?

The questions:

Has anyone else encountered this?
If so, were you able to work around it?
If not, any ideas/suggestions/recommendations?

Some publically accessible WSDLs I've accessed:

http://www.webservicex.net/stockquote.asmx?WSDL
http://www.webservicex.net/whois.asmx?WSDL
http://api.google.com/GoogleSearch.wsdl
http://terraserver.microsoft.com/TerraService2.asmx?WSDL
http://terraserver-usa.com/TerraService2.asmx?WSDL

-----
Brian Kesecker, Software Developer, Augusta Systems, Inc.
-- 
View this message in context: http://mono.1490590.n4.nabble.com/Web-Services-Description-ServiceDescription-Read-Type-Initializer-Exception-tp2065397p2065397.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list