System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.Net.WebException: 无法解析此远程名称: 'www.cma.gov.cn'
在 System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
在 System.Net.WebClient.DownloadData(Uri address)
在 System.Net.WebClient.DownloadData(String address)
在 getHttpText.getHttpText(String theUrl)
在 Service.getWeatherbyCityName(String theCityName, theDayFlagEnum theDayFlag)
--- 内部异常堆栈跟踪的结尾 ---
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.Net.WebException: 无法解析此远程名称: 'www.cma.gov.cn'
在 System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
在 System.Net.WebClient.DownloadData(Uri address)
在 System.Net.WebClient.DownloadData(String address)
在 getHttpText.getHttpText(String theUrl)
在 Service.getWeatherbyCityName(String theCityName, theDayFlagEnum theDayFlag)
--- 内部异常堆栈跟踪的结尾 ---源错误:
行 54: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/getWeatherbyCityName", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
行 55: public string[] getWeatherbyCityName(string theCityName, theDayFlagEnum theDayFlag) {
行 56: object[] results = this.Invoke("getWeatherbyCityName", new object[] {
行 57: theCityName,
行 58: theDayFlag});
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货