Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to read a uri

Status
Not open for further replies.
this is the ERROR :

Exception Details: System.Net.WebException: The underlying connection was closed: The proxy name could not be resolved, verify correct proxy configuration.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below

I now tried this with the same error :

Dim resolver As New System.Xml.XmlUrlResolver()
Dim baseUri As New Uri("Dim s As System.IO.Stream = CType(resolver.GetEntity(baseUri, Nothing, GetType(System.IO.Stream)), System.IO.Stream)
Dim reader As New System.Xml.XmlTextReader(s)
DataSet1.ReadXml(reader)

Edward@de-leau.com
 
and this piece of code also gives me the same error :


Dim req As System.Net.HttpWebRequest = System.Net.WebRequest.Create(" Dim resp As System.Net.HttpWebResponse = CType(req.GetResponse(), System.Net.HttpWebResponse)
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(resp.GetResponseStream)
Dim reader As New System.Xml.XmlTextReader(sr)
DataSet1.ReadXml(reader)

But i do not have some proxy installed !! im connecting directly to the internet. Edward@de-leau.com
 
I try this :

DataSet1.ReadXml("
on my webhosting account and it works
I try it on my own local server (localhost) and it gives me " The underlying connection was closed: The proxy name could not be resolved, verify correct proxy configuration." error.

So somehow it detects a proxy although i dont have one installed ( in ie i just surf without giving a proxy in the settings). In machine.config it is also ok 'default'.

anyone got this one before ? where should i look for the proxy ?
Edward@de-leau.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top