I’m using TCPListener which according to this page should be in System.Net.Sockets, I have
using System.Net;
using System.Net.Sockets;
...
TCPListener tcpListener = new TCPListener(10);
Visual Studio is producing the following error
Error 1 The type or namespace name
‘TCPListener’ could not be found (are
you missing a using directive or an
assembly
reference?) C:\path\WindowsService.cs 85 13 Windows
Service Test1
Did I miss something?
You need to spell it correctly: it’s
TcpListener, notTCPListener. C# is case-sensitive.