aspx Tutorial

NET Articles,jQuery demo, with jQuery, online tutorial,Jquery, SilverLight, Javascript,,JSON, MVC,.NET Articles,demo, Web Services,
Advertise Here


Get our toolbar!


Posted by Aamir Hasan   on Tuesday, April 5, 2011 Total Views:  

I have noticed that many developers have problems when they face “407 Proxy Authentication Required” exception on the internet by application. Your application required proxy server when you use your application behind the LAN.

In net 1.1 GlobalProxySelection class allows you to return WebRequest.DefaultWebProxy.

You can also prompt the user for the own credential, or you can also set the default credentials. I will also advice you that don’t set credentials until you will not receive 407 exception message.

There are some other examples but at the time this will helps you. Next time I will publish some more examples on this error, if you have more concerned please feel free to ask.


        System.Net.WebRequest request = System.Net

        System.Net.WebProxy pry = new System.Net.WebProxy("PROXY ADDRESS", 8080);

        pry.Credentials = System.Net.CredentialCache.DefaultCredentials;

        System.Net.GlobalProxySelection.Select = pry;


        System.Net.HttpWebResponse response = (System.Net.HttpWebResponse)request.GetResponse();

        System.IO.Stream dataStream = response.GetResponseStream();

        System.IO.StreamReader reader = new System.IO.StreamReader(dataStream);

         string responseFromServer = reader.ReadToEnd();





Protected by Copyscape Online Plagiarism Tool

Comments (2) -

alkaline water machine
alkaline water machine United States
9/8/2015 3:27:16 AM #

You can definitely see your expertise within the paintings you write. The arena hopes for more passionate writers like you who are not afraid to say how they believe. All the time follow your heart.

nfl jerseys wholesale
nfl jerseys wholesale United States
9/10/2015 4:39:35 AM #

<a href="">customized nfl jerseys cheap</a>  <a href="">Wholesale NFL Jerseys</a>

cam girls
cam girls United States
9/19/2015 11:02:34 AM #

Vividstream Adult Webcam site is the place to go.

Tommie Reinsmith
Tommie Reinsmith United States
10/2/2015 8:02:58 AM #

Hey Guys, Nice Blog!

Unibank United States
10/5/2015 7:16:28 PM #

There are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game. Both boys and girls feel the impact of just a moment’s pleasure, for the rest of their lives.

Romelia Tarrats
Romelia Tarrats United States
10/9/2015 3:51:25 PM #

It would be really cool if you could check this out:

Add comment

  Country flag

  • Comment
  • Preview

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5