Server Error in '/' Application.

The remote name could not be resolved: 'gateway.fundinfo.com'

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote name could not be resolved: 'gateway.fundinfo.com'

Source Error:


Line 41:         Dim uri As String = String.Format("http://gateway.fundinfo.com/ifphk/query/?isin={0}", fundInfo.ISIN)
Line 42:         
Line 43:         Dim doc As XPathDocument = New XPathDocument(uri)
Line 44:         Dim nav As XPathNavigator = doc.CreateNavigator()
Line 45:         Dim rawUrlPrototypeXpath As String = "/document_list/@raw_url_prototype"

Source File: C:\APPs\IFPHKWeb\Pro\Fundhk\en_funddoc.aspx    Line: 43

Stack Trace:


[WebException: The remote name could not be resolved: 'gateway.fundinfo.com']
   System.Net.HttpWebRequest.GetResponse() +1740
   System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +106
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +89
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +74
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +112
   System.Xml.XmlTextReaderImpl.OpenUrl() +426
   System.Xml.XmlTextReaderImpl.Read() +304
   System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space) +388
   System.Xml.XPath.XPathDocument..ctor(String uri, XmlSpace space) +128
   ASP.fundhk_en_funddoc_aspx.Page_Load(Object sender, EventArgs e) in C:\APPs\IFPHKWeb\Pro\Fundhk\en_funddoc.aspx:43
   System.Web.UI.Control.OnLoad(EventArgs e) +109
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0