[Mono-list] CS0246

A Rafael D Teixeira rafaelteixeirabr@hotmail.com
Mon, 27 Jan 2003 22:06:59 -0200


>From: Mariam Razeghi <msturner_2000@yahoo.com>
>
>I have created a C# application in Windows 2000 and
>.Net framework. It contains a wsdl web reference.
>
>In the client, the web reference is used as following:
>localhost.ServerTest test = new
>localhost.ServerTest();
>
>When I try to compile the code using the msc or even
>csc commands, I get the following error:
>ISME_CSharp\ISMEClient\Form1.cs(31,3): error CS0246:
>The type or namespace name 'localhost' could not be
>found (are you missing a using directive or an
>assembly reference?)

You need to feed mcs with the wrapper class created by Visual Studio.NET. It 
is a .cs file inside the web reference folder. You need to set the project 
to 'Show all files' for you to see it...

The command line would be like this for your snippet:

mcs Form1.cs localhost/ServerTest.cs

>Would anyone know what I need to do in my client code
>to fix this error.

But BEWARE, this wrapper class, inherits from a big class and uses many 
supporting classes inside the System.Web.* namespaces that I think are still 
not implemented in mono libraries. Check the class status.

Happy Hackings,

Rafael Teixeira
Brazilian Polymath
Mono, MonoQLE Hacker



_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail