[Mono-devel-list] Error when compiling WSDL cs to dll

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Aug 9 13:30:11 EDT 2004


On Sat, 2004-08-07 at 15:51, John Bailo wrote:
> I developed an ASP.NET web service on a remote server and I want to build a 
> mono client to consume it.
> 
> I downloaded the WSDL and created a class with the WSDL command.
> 
> Then I attempt to compile it to a dll with this command:
> 
> mcs /target:library Service1.cs
> 
> and also
> 
> msc /target:library Service1.cs /r:System.Web.dll
> 
> but in both cases receive this error:
> 
> Service1.cs(19) error CS0246: Cannot find type 
> `System.Web.Services.Protocols.SoapHttpClientProtocol'

You have to reference System.Web.Services.dll. csc does that by default,
but mcs doesn't.

-gonzalo





More information about the Mono-devel-list mailing list