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读数据和注册表有什么关系。。如何解决?

c# .net

早睡早起身体好 10 years ago