[Mono-list] Problen with Web Services Example

Juan C. Olivares juancri at juancri.com
Wed Nov 5 00:25:03 EST 2008


I'm not sure if this has to do with that, but AsyncCompletedEventArgs is
only available in .NET 2, so you would need to compile using gmcs instead of
mcs and also you should use wsdl2 instead of wsdl.

Hope this helps.

Regards,
Juan C. Olivares

On Sun, Nov 2, 2008 at 9:52 PM, unique_stephen <stephen.k.clark at gmail.com>wrote:

> I'm getting the same error:
>  error CS0234: The type or namespace name `AsyncCompletedEventArgs' does
> not exist in the namespace `System.ComponentModel'
> I'm trying the example WebService project over at The Code Project Website:
> http://lamp.codeproject.com/KB/webservices/MonoStockInformation.aspx
> wsdl writes the cs document no problem:
>  $ wsdl http://www.webservicex.net/stockquote.asmx?wsdl
> Web Services Description Language Utility
> Mono Framework v2.0.50727.42
> Writing file 'StockQuote.cs'
> But the cs file fails to compile, sigh
>  $ mcs /target:library StockQuote.cs -r:System.Web.Services
> StockQuote.cs(71,73): error CS0234: The type or namespace name
> `AsyncCompletedEventArgs' does not exist in the namespace
> `System.ComponentModel'. Are you missing an assembly reference? Compilation
> failed: 1 error(s), 0 warnings
>
> mobility wrote:
>
> I'm a newbie with Mono, so please bear with me.
>
> After installing a fresh version of Mono 2.0, I tried following the instructions at:http://www.mono-project.com/Web_Services
>
> It is all fine, until I run "mcs /target:library GoogleSearchService.cs -r:System.Web.Services".
>
> This fails with:
>
> GoogleSearchService.cs(475,80): error CS0234: The type or namespace name `AsyncCompletedEventArgs' does not exist in the namespace `System.ComponentModel'. Are you missing an assembly reference?
> GoogleSearchService.cs(494,85): error CS0234: The type or namespace name `AsyncCompletedEventArgs' does not exist in the namespace `System.ComponentModel'. Are you missing an assembly reference?
> GoogleSearchService.cs(513,79): error CS0234: The type or namespace name `AsyncCompletedEventArgs' does not exist in the namespace `System.ComponentModel'. Are you missing an assembly reference?
> Compilation failed: 3 error(s), 0 warnings
>
> Well it looks like it needs an assembly reference that provides "System.ComponentModel".  However that looks like it should be provided by System.  I have tried modifying the command line to include "System" with no luck and "System.ComponentModel" is a non starter.
>
> Suggestions?
>
> Thanks!
>
>
> ------------------------------
> View this message in context: Re: Problen with Web Services Example<http://www.nabble.com/Problen-with-Web-Services-Example-tp20124391p20295760.html>
>
> Sent from the Mono - General mailing list archive<http://www.nabble.com/Mono---General-f1378.html>at Nabble.com.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20081105/6634992c/attachment.html 


More information about the Mono-list mailing list