[Mono-list] Mono Web Services
Elliott Draper
el at eldiablo.co.uk
Wed Jun 29 06:38:58 EDT 2005
Hi there,
You need to add a reference to the System.Web.Services assembly as it
must be using that within the class.
Try:
mcs /target:library GoogleSearchService.cs -r:System.Web.Services
Incidentally, when I tried to compile a file that required this
assembly, without it, as a test, the compiler gave me the below error
(aswell as the one you quoted), that helpfully informed me that I should
add a reference to System.Web.Services :-)
test.cs(1) error CS0246: The namespace `System.Web.Services' can not be
found (m
issing assembly reference?)
Try using -r:System.Web.Services
I assumed that was the problem from your error message, but that's
pretty clever, I didn't realise it did that.
Regards,
-= El =-
Tarun R wrote:
> Hi,
> I recently tried using Google web APIs and got their WSDL file.
> I made it into a C# file using Mono WSDL toolkit.
> When I tried building the library, it gave an error:
>
> The command I entered was:
> $mcs /target:library GoogleSearchService.cs
>
> The result was:
> $GoogleSearchService.cs(20) error CS0234: The type or namespace name
> `Services' could not be found in namespace `System.Web'
> Compilation failed: 1 error(s), 0 warnings
>
> Please Help.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Mono-list maillist - Mono-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list
>
>
More information about the Mono-list
mailing list