Cannot find the System.Net namespace 
Author Message
 Cannot find the System.Net namespace

Hi all,

 I am trying to use the "System.Net" class in my little application to do
some TCP/IP socket work but when I build my project I get the following
message:

 "The type or namespace name 'Net' does not exist in the class or namespace
'System' (are you missing an assembly reference?)"

I have tried to Add References to my project but I don't see anywhere any
indication for the "System.Net" library.
What am I missing? have I properly installed my SDK? or should this
"System.Net" library be installed separately?

Many Thanks,



Mon, 25 Oct 2004 00:02:17 GMT  
 Cannot find the System.Net namespace
Bilal, do you have a using statement at the top of your source file?  You
don't need a Reference but you do need a using statement.

using System.Net;
--
Greg
http://www.claritycon.com/


Quote:
> Hi all,

>  I am trying to use the "System.Net" class in my little application to do
> some TCP/IP socket work but when I build my project I get the following
> message:

>  "The type or namespace name 'Net' does not exist in the class or
namespace
> 'System' (are you missing an assembly reference?)"

> I have tried to Add References to my project but I don't see anywhere any
> indication for the "System.Net" library.
> What am I missing? have I properly installed my SDK? or should this
> "System.Net" library be installed separately?

> Many Thanks,



Sun, 24 Oct 2004 23:11:35 GMT  
 Cannot find the System.Net namespace

Quote:

> Bilal, do you have a using statement at the top of your source file?  You
> don't need a Reference but you do need a using statement.

Strictly speaking, you don't need a using statement because you can
always use fully qualified type names:

public class UsingTest {
   public static void Main() {
     System.Console.WriteLine("Hello World"); //doesn't require 'using'
     //Console.WriteLine("Hello World"); //requires 'using'
   }

Quote:
}

Jim S.


Sun, 24 Oct 2004 23:33:48 GMT  
 Cannot find the System.Net namespace
Hi Greg,

 Yes I am using the "using" statement. In fact, this what I have in my C#
file:

    using System;
    using System.Net;
    using System.Net.Sockets;

And still I am getting the same compilation error:

 "The type or namespace name 'Net' does not exist in the class or  namespace
   'System' (are you missing an assembly reference?)"

Many Thanks,

Bilal,


Quote:
> Bilal, do you have a using statement at the top of your source file?  You
> don't need a Reference but you do need a using statement.

> using System.Net;
> --
> Greg
> http://www.claritycon.com/



> > Hi all,

> >  I am trying to use the "System.Net" class in my little application to
do
> > some TCP/IP socket work but when I build my project I get the following
> > message:

> >  "The type or namespace name 'Net' does not exist in the class or
> namespace
> > 'System' (are you missing an assembly reference?)"

> > I have tried to Add References to my project but I don't see anywhere
any
> > indication for the "System.Net" library.
> > What am I missing? have I properly installed my SDK? or should this
> > "System.Net" library be installed separately?

> > Many Thanks,



Mon, 25 Oct 2004 01:25:22 GMT  
 Cannot find the System.Net namespace
Thank you all I got it, I had to Add reference to System.dll

Bilal,


Quote:
> Hi Greg,

>  Yes I am using the "using" statement. In fact, this what I have in my C#
> file:

>     using System;
>     using System.Net;
>     using System.Net.Sockets;

> And still I am getting the same compilation error:

>  "The type or namespace name 'Net' does not exist in the class or
namespace
>    'System' (are you missing an assembly reference?)"

> Many Thanks,

> Bilal,



> > Bilal, do you have a using statement at the top of your source file?
You
> > don't need a Reference but you do need a using statement.

> > using System.Net;
> > --
> > Greg
> > http://www.claritycon.com/



> > > Hi all,

> > >  I am trying to use the "System.Net" class in my little application to
> do
> > > some TCP/IP socket work but when I build my project I get the
following
> > > message:

> > >  "The type or namespace name 'Net' does not exist in the class or
> > namespace
> > > 'System' (are you missing an assembly reference?)"

> > > I have tried to Add References to my project but I don't see anywhere
> any
> > > indication for the "System.Net" library.
> > > What am I missing? have I properly installed my SDK? or should this
> > > "System.Net" library be installed separately?

> > > Many Thanks,



Mon, 25 Oct 2004 02:01:02 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. ???? System.Net namespace not found?

2. Cannot find namespace

3. Cannot use System.Drawing Namespace

4. can't find namespace using System.Web.UI.Design

5. System can't find ServiceProcess namespace

6. VS.net - System namespace

7. Compiling using System.Net namespace

8. fatal error LNK1256: ALINK operation failed (80070002): The system cannot find the file specified

9. system cannot find the file specified

10. Cannot Find System

11. "System.Net" not found

12. System.CodeDom, System.CodeDom.Compiler, and Microsoft.CSharp Namespaces

 

 
Powered by phpBB® Forum Software