I got 11 errors in my VB program. All the errors look similar: X is ambiguous in the namespace Y
Error line: Imports System.Net.Sockets
Imports System.Text
Module Module1
Sub Main()
Dim serverSocket As New TcpListener(System.Net.IPAddress.Parse("192.168.1.100"), 8888)
How might I resolve this?
I suspect that you’ve added two different references for assemblies that define
System.Net.Sockets. (ProbablySystem.dllfor .NET 2.0 and .NET 4.0, but that’s neither here nor there.)I say this because there’s nothing wrong with your code:
result: success time: 0.16s memory: 25064 kB returned value: 0