public string GetData(){
      MSXML2.XMLHTTPClass xmlHttp = new MSXML2.XMLHTTPClass();
      xmlHttp.open("Get",@"http://www.csdn.net/news/newstopic/18/18780.shtml",false,null,null);
      xmlHttp.send(null);
      return xmlHttp.responseText;
}出现以下错误提示:
未处理的“System.Runtime.InteropServices.COMException”类型的异常出现在“***.dll”中
其他信息,指定的资源下载失败

解决方案 »

  1.   

    你用httpwebrequest试试,它是.net自带的,这个是com
      

  2.   

    用法参照
    http://dotnet.aspx.cc/ShowDetail.aspx?id=4AE836F8-CCB4-4BEF-90B1-25BB1A5E6433
      

  3.   

    net_lover(孟子E章) 
    这是一个类中的方法,如何实现
      

  4.   

    你的调用都调用凑了
    open方法第应该是 open(",@"http://www.csdn.net/news/newstopic/18/18780.shtml","get",false,null,null)吧