string url = "
http://localhost:101/interface.txt";";
StreamReader fileReader = null;
try
{
DiscoveryClientProtocol myDiscovery = new DiscoveryClientProtocol();
Stream fileStream = myDiscovery.Download(ref url);
fileReader = new StreamReader(fileStream, Encoding.GetEncoding(936));
}
catch
{
Application.Exit();
}