System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found
<p>I have a C# application where I use remoting. However, some customer recently reported a problem. I get an unusual exception in my code:</p>

<blockquote>
  <p>System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found.</p>
</blockquote>

<p>I get an exception when creating a new <code>TcpChannel</code>. The code I use is:</p>

<pre><code>BinaryServerFormatterSinkProvider binaryServiceProvider = new BinaryServerFormatterSinkProvider();
binaryServiceProvider.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
BinaryClientFormatterSinkProvider binaryclientProv = new BinaryClientFormatterSinkProvider();
IDictionary props = new Hashtable();
props["port"] = portNo;//PortNumber I use is 20052
props["name"] = "ApplicationName";
try
{
    TcpChannel channel = new TcpChannel(props, binaryclientProv, binaryServiceProvider);
    ChannelServices.RegisterChannel(channel, false);
}
catch (Exception a_Exception)
{
    System.Diagnostics.Debug.WriteLine(a_Exception);
    System.Diagnostics.Trace.WriteLine(a_Exception);
} 
</code></pre>
