Advertisement

06.07.2007 at 12:34PM PDT, ID: 22620185
[x]
Attachment Details

(407) Proxy Authentication Required

Asked by wthomson in .NET Framework 2.0, .Net Editors & IDEs, Visual Studio .NET 2005

Tags: proxy, authentication, required, 407

Question:
I have the following code and it works for most users, some get a Proxy Error

The remote server returned an error: (407) Proxy Authentication Required
At System.Net.HttpWebData(String URLtoCall)

What can I do ?

      Dim uri As New Uri(URLtoCall)
      Dim request As WebRequest = WebRequest.Create(uri)
      Dim response As WebResponse = request.GetResponse()
      Dim stream As Stream = response.GetResponseStream
      Dim reader As New StreamReader(stream)
      Dim data As String = reader.ReadToEnd()
      RetWebData = ""
      RetWebData = data
      reader.Close()
      stream.Close()
 
Start Free Trial
[+][-]06.07.2007 at 12:42PM PDT, ID: 19236743

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.07.2007 at 01:08PM PDT, ID: 19236963

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.07.2007 at 01:12PM PDT, ID: 19236989

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.0, .Net Editors & IDEs, Visual Studio .NET 2005
Tags: proxy, authentication, required, 407
Sign Up Now!
Solution Provided By: gregoryyoung
Participating Experts: 2
Solution Grade: B
 
 
[+][-]06.19.2007 at 03:23PM PDT, ID: 19320665

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32