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”中
其他信息,指定的资源下载失败
http://dotnet.aspx.cc/ShowDetail.aspx?id=4AE836F8-CCB4-4BEF-90B1-25BB1A5E6433
这是一个类中的方法,如何实现
open方法第应该是 open(",@"http://www.csdn.net/news/newstopic/18/18780.shtml","get",false,null,null)吧