我在我的 ASP.NET/VB.NET 项目中使用此代码:
Dim sourceFile as String = "http://xml.weather.yahoo.com/forecastrss?p=94704"
Dim xPath As New XPath.XPathDocument(sourceFile)
第二行给出错误:“无法连接到远程服务器”
当我在网络浏览器中浏览 url (sourceFile) 时,它会很好地打开 RSS 提要页面。如何消除此错误?
我在我的 ASP.NET/VB.NET 项目中使用此代码:
Dim sourceFile as String = "http://xml.weather.yahoo.com/forecastrss?p=94704"
Dim xPath As New XPath.XPathDocument(sourceFile)
第二行给出错误:“无法连接到远程服务器”
当我在网络浏览器中浏览 url (sourceFile) 时,它会很好地打开 RSS 提要页面。如何消除此错误?