首页 > c# 使用WebClient DownloadData出错

c# 使用WebClient DownloadData出错

抛出异常的语句

string RecvStr = Encoding.ASCII.GetString(client.DownloadData("http://***/latestversion.txt"));

异常信息

发生了 System.IO.IOException
  IsTransient=false
  Message=指定的注册表项不存在。
  Source=mscorlib
  StackTrace:
       在 Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
  InnerException: 

用webclient读数据和注册表有什么关系。。如何解决?


http://stackoverflow.com/questions/13141434/httpclient-request-throws-ioexception

【热门文章】
【热门文章】