tags:

views:

174

answers:

1

How can this error be rectified?

Exception: System.Net.Sockets.SocketException Message: The requested name is valid, but no data of the requested type was found Source: mscorlib

Server stack trace: at System.Net.Dns.GetHostByName(String hostName) at System.Net.Dns.Resolve(String hostName)

+2  A: 

That depends entirely on what code is causing it. If it is an explicit call to System.Net.Dns.Resolve, it's probably a failure on the part of the DNS server. Wrap the offending code in a try-catch block to catch SocketException and handle such events gracefully. Otherwise, without seeing any code, it's impossible to know.

Volte