missing reference

hi friends... i downloaded vc# 2005 express edition,when i try to use Tcp.Listener class i get the following error.
.
Error 1 The type or namespace name 'Net' does not exist in the namespace 'System' (are you missing an assembly reference ) C:\Documents and Settings\Ravi n Kapil\My Documents\Visual Studio 2005\Projects\ravi\ravi\CodeFile2.cs 4 14 ravi
..
.
.
.
has ms removed some classes from express editions as it is free


Answer this question

missing reference

  • Peter McCurdy

    hi thanks....what happened was i gave using system.net,but dint know i had to reference it ....thank you everyone
  • mettu

    hi...thanks 4 your prompt reply....sorry to say but it dint help...i reinstalled c#....still same error....i sereched my disk,there is a system.dll in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

    .........but still it gives same error...can u give me an example of how to define a TcpListener object....thanks a lot


  • Regis

    You must use System.Net.Sockets, this namespace is located in System.dll. The core. So you must have it, this doesn't depend on the version of IDE you use.


  • missing reference