Saqib Ullah

BootStrapper Know How

  Home  |   Contact  |   Syndication    |   Login
  93 Posts | 1 Stories | 341 Comments | 15 Trackbacks

News



Article Categories

Archives

Post Categories

Blogging websites

Favourite Blogs

Private Links

Sites

  The remote server returned an error: (407) Proxy Authentication Required.


This is a very common error message when you try to get a resource on internet through your application. Why you getting this error from your application not from explorer. The reason is very simple either you use LAN that requires proxy setting or you use proxy server.

Example : 
DataSet myds = new DataSet();
//Set the system proxy with valid server address or IP and port.
System.Net.WebProxy pry = new System.Net.WebProxy("172.16.0.1",8080);
//The DefaultCredentials automically get username and password.
pry.Credentials = CredentialCache.DefaultCredentials;
GlobalProxySelection.Select = pry;
myds.ReadXml("http://msdn.microsoft.com/netframework/rss.xml", XmlReadMode.Auto);
myds.WriteXmlSchema(@"c:\\f.xml");
this.GridView1.DataSource = myds.Tables[2];
this.GridView1.DataBind();
posted on Saturday, August 11, 2007 2:30 AM

Feedback

# re: (407) Proxy Authentication Required. 8/12/2007 9:10 PM Sachin Vibhute
Hiii thnks for the code it help me a lot.
Thnks very much

# re: (407) Proxy Authentication Required. 8/12/2007 11:22 PM Daniele Muscetta
I know this is a very common issue. I keep finding way too many software that claim to interact with Web 2.0 sites or services, and connect here or there.... still forgetting one basic simple rule, that is: letting people use a proxy.

Most programmers for some reasons just assume that since they are directly connected to the internet, everybody is. Which isn't always the case. Most companies have proxies and will only let you out to port 80 - by using their proxy.

...which in turn is one of the reasons why most applications now "talk" and tunnel whatever application protocol on top of HTTP... still a lot of softwares simply "forget" or don't care proving a simple checkbox "use proxy", which will translate in two or three extra lines of code...


# re: (407) Proxy Authentication Required. 8/16/2007 4:30 PM Laxmi Kant
Thnks
It helped a lot........
Laxmi Kant

# re: (407) Proxy Authentication Required. 10/4/2007 11:29 PM jon
yeh this sorted me out too i wasnt giving the proxy the default credentials nice one man

# re: (407) Proxy Authentication Required. 10/9/2007 2:20 AM a
Thnanks.. this really helped me to resolve the proxy issue

# re: (407) Proxy Authentication Required. 11/21/2007 2:27 AM Harsha Kumar
I have a similar problem. I'm using a webcontrol in my desktop application to that talk to a java application and displays an html page. But when i do a GetResponse after passing in the parameters for proxy authentication it throws an error saying (407) Proxy Authentication Required - user not authorized.
Here is the code snipet
WebRequest webReq = WebRequest.Create(http://url i need to connect");
webReq.Proxy = new WebProxy("http://proxy:8080",true);
Proxy.Credentials = new NetworkCredential(UserNamePassword,"Domain");
webReq.Proxy = Proxy;
System.Net.WebResponse resp = webReq.GetResponse();

Please let me know what is that I'm doing incorrectly? I'm stuck with this.

# re: (407) Proxy Authentication Required. 11/27/2007 9:03 AM kathy
How do i fix this on my lap top so i use vonage

# re: (407) Proxy Authentication Required. 3/11/2008 7:05 AM Márcio
Thanks a lot!

# re: (407) Proxy Authentication Required. 3/11/2008 7:20 PM dj, dj programı, dj programları
thank you man

# re: (407) Proxy Authentication Required. 3/12/2008 11:59 PM gocompare
I know this is a very common issue. I keep finding way too many software that claim to interact with Web 2.0 sites or services, and connect here or there.... still forgetting one basic simple rule, that is: letting people use a proxy.

# re: (407) Proxy Authentication Required. 3/25/2008 9:29 AM Hasan
Excellent post.

# re: (407) Proxy Authentication Required. 4/10/2008 11:54 PM truthseeker
heyy im facing the same problem with my softphone as im implementing a softphone that connects to a sip server to communicate with other clients..it works fine with voice calls but once i try to send any text messages the same error occurs to me..so would i use the same code to solve the problem or its different in my issue??

thanx in advance

# re: (407) Proxy Authentication Required. 5/4/2008 1:22 AM oyun hileleri
heyy im facing the same problem with my softphone as im implementing a softphone that connects to a sip server to communicate with other clients..it works fine with voice calls but once i try to send any text messages the same error occurs to me..so would i use the same code to solve the problem or its different in my issue??

# re: (407) Proxy Authentication Required. 5/9/2008 8:41 AM Miami Lawyer
what you think about lawyer

http://miamilawyer.cn/


# re: (407) Proxy Authentication Required. 6/22/2008 6:09 AM jon reyes
how i fixed this problem.

# re: (407) Proxy Authentication Required. 7/30/2008 7:50 PM NB
hi i am getting the error" unable to connect to remote server"

on the statement

ds.ReadXml("http://msdn.microsoft.com/netframework/rss.xml", XmlReadMode.Auto);

i am working in an organisation and let me know how to use the proxy settings..

# re: (407) Proxy Authentication Required. 8/8/2008 5:49 AM fino
THANKS!
Obrigado!

# re: (407) Proxy Authentication Required. 9/12/2008 6:22 AM suresh h
Hi,

i am having same error : The remote server returned an error: (407) Proxy Authentication Required

and i am using below code.

xmlRequest = XmlUtil.ToXml(this, false);

proxy = new projectnamespace.webservice();

proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
xmlResponse = proxy.ExecuteRequestGetXml((int) ObjectName, xmlRequest);

can you please tell me what is missing into this code or please suggest me how can i merge your code into ?

thanks in advance.. please help me!!!!

# re: (407) Proxy Authentication Required. 9/22/2008 1:11 AM ladyenny
what code should I use I am new with the computer stuff and eveytime I try to use my vonage it gives me a 407 proxy required error...what should I do???

# re: (407) Proxy Authentication Required. 10/12/2008 3:57 AM tv izle
thank you for good site and very nice write

# re: (407) Proxy Authentication Required. 10/14/2008 9:39 PM diyet
ty man nice to you homepage

# re: (407) Proxy Authentication Required. 10/17/2008 4:37 PM tanu
i am having error : The remote server returned an error: (407) Proxy Authentication Required

and i am using below code.

xmlRequest = XmlUtil.ToXml(this, false);

proxy = new projectnamespace.webservice();

proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
xmlResponse = proxy.ExecuteRequestGetXml((int) ObjectName, xmlRequest);


wer do i need to put all this code ? i mean wer do i hav to place this code to get the functioning again?


# re: (407) Proxy Authentication Required. 10/19/2008 12:08 AM Hikaye
thank you for good site and very

# re: (407) Proxy Authentication Required. 10/19/2008 12:08 AM diziizle
Thank you

# re: (407) Proxy Authentication Required. 10/31/2008 12:22 AM Jitendra
Hi All,
Fine with all your codes. I am software Implementator and i desktop based tool which download the bulk images from our server via. Internet.

Now its shooting an error "http error proxy authentication required", Pls suggest some setting which can be done from the client network in their proxy server to resolve the issue.

Thanks,
jitendra

# re: (407) Proxy Authentication Required. 11/4/2008 2:41 AM kamy
new proxy

# re: (407) Proxy Authentication Required. 11/5/2008 2:31 PM sex videoları
verdiğiniz güzel bilgiler için teşekkürler

# re: (407) Proxy Authentication Required. 11/10/2008 6:59 AM Syed
How do i fix this on my lap top so i use vonage; its really urgent. let me know the details; that how to place these codes


# re: (407) Proxy Authentication Required. 11/25/2008 1:17 PM adanalı
thanks man...

# re: (407) Proxy Authentication Required. 12/12/2008 12:22 AM Online lost heroes episode
thank you man

# re: (407) Proxy Authentication Required. 12/17/2008 2:08 PM müzik
thanks man.

# re: (407) Proxy Authentication Required. 12/31/2008 8:51 AM serkan
fifa 2008

# re: (407) Proxy Authentication Required. 1/2/2009 5:40 AM Porno izle
Thank you dostum

# re: (407) Proxy Authentication Required. 1/19/2009 11:02 PM izlesene
ty man you exellent homepage..

# re: (407) Proxy Authentication Required. 1/22/2009 8:00 AM sex
teşekkürler kanks

# re: (407) Proxy Authentication Required. 1/22/2009 8:01 AM sikis
thanks ;)

# re: (407) Proxy Authentication Required. 1/22/2009 10:01 AM JamesHip
Yep, it works good.

# re: (407) Proxy Authentication Required. 1/25/2009 9:58 PM am yalama
Hello problem fixed patch ?

# re: (407) Proxy Authentication Required. 1/27/2009 1:19 PM erotik videolar
Hello problem fixed patch ?

# re: (407) Proxy Authentication Required. 2/13/2009 12:22 AM Excelsior
very interesting! thank you very much for this information.
Can I place this material on your site? course with a backlink to you:)

# re: (407) Proxy Authentication Required. 2/21/2009 1:52 AM porno tv
Can I place this material on your site? course with a backlink to you:)

# re: (407) Proxy Authentication Required. 2/25/2009 7:18 AM SuperSikis
Thank you :)

# re: (407) Proxy Authentication Required. 2/28/2009 2:41 AM Секс по телефону
Hello problem fixed patch ?
Thank you :)

# re: (407) Proxy Authentication Required. 3/6/2009 6:06 AM kral oyunlar
great infos

# re: (407) Proxy Authentication Required. 3/10/2009 3:28 AM oyun sirki
thanks for infos

# re: (407) Proxy Authentication Required. 3/10/2009 3:30 AM giydirme oyunları
thanks for infos great article

# re: (407) Proxy Authentication Required. 3/10/2009 10:51 AM yemek tarifi
thank u

# re: (407) Proxy Authentication Required. 3/10/2009 10:54 AM site ekle
This is very helpful script.
Thank you.

# re: (407) Proxy Authentication Required. 3/14/2009 12:03 AM süper oyunlar
great article thanks

# re: (407) Proxy Authentication Required. 3/21/2009 10:22 AM pornoseksizle.com
porno izle seks izle

# re: (407) Proxy Authentication Required. 3/21/2009 10:23 AM porno izle
thank yoou

# re: (407) Proxy Authentication Required. 3/21/2009 10:24 AM sikiş
porno izle sikiş

# re: (407) Proxy Authentication Required. 3/21/2009 10:31 PM oyun indir
super info

# re: (407) Proxy Authentication Required. 3/24/2009 9:05 AM diyet
thanks man

# re: (407) Proxy Authentication Required. 3/29/2009 3:05 PM Porno Video
How do i fix this on my lap top so i use vonage; its really urgent. let me know the details; that how to place these codes

# re: (407) Proxy Authentication Required. 4/3/2009 6:29 AM hikaye
great article thanks

# re: (407) Proxy Authentication Required. 4/3/2009 6:47 AM tecavuz
thanks for infos


# re: (407) Proxy Authentication Required. 4/5/2009 7:26 AM hikayeleri
great article thanks....

# re: (407) Proxy Authentication Required. 4/9/2009 7:41 AM shahram
i want a proxy site

# maç oyunları 4/21/2009 5:09 PM www.mac-oyunlari.com
best soccer and adventure games can be found in our website.

# re: (407) Proxy Authentication Required. 4/24/2009 1:16 AM Sikiş İzle
Sikiş izle www.yarak7.com

# re: (407) Proxy Authentication Required. 4/24/2009 3:47 AM bedava mp3
thanks for post

# re: (407) Proxy Authentication Required. 5/2/2009 4:39 AM yabancı film izle
thanks for post

# re: (407) Proxy Authentication Required. 5/21/2009 6:22 PM sex hikayeleri
nice. nice

# re: (407) Proxy Authentication Required. 6/25/2009 11:31 AM Ravi
Man that snippet saved me lot of headache.
Thank you for the post.

# re: (407) Proxy Authentication Required. 7/10/2009 7:23 AM johnnyb
Hi all,

I think it works fine in XP but not in Vista. I have the same Problem.. I get a "407 Proxy Authentication Required" in Vista, in XP it works:

HttpWebRequest httpWebRequest = ((HttpWebRequest)WebRequest.Create(url));
httpWebRequest.Method = "POST";
httpWebRequest.ContentType = "application/x-www-form-urlencoded";
httpWebRequest.ContentLength = ((long)byteArray.Length);
httpWebRequest.Proxy = HttpWebRequest.GetSystemWebProxy();
httpWebRequest.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
Stream answerStream = httpWebRequest.GetRequestStream();


Idea??? Some one can help me?

Thanks!

# re: (407) Proxy Authentication Required. 7/19/2009 7:37 AM diyet
thank you for good site and very nice write

# re: (407) Proxy Authentication Required. 7/20/2009 11:42 AM vcc
awesome. Thanks!

# re: (407) Proxy Authentication Required. 8/4/2009 4:39 AM Farzad
Thanks a lot
It's really helpful.

# re: (407) Proxy Authentication Required. 8/17/2009 6:57 AM awe
where do you insert those codes, my pc is on a LAN network server and utorrent pops out those errors, but i inserted my user names and password and the proxy settings are rite... but still it wont start downloading ??? help!!!!!!

# re: (407) Proxy Authentication Required. 8/22/2009 11:57 AM Bayrak
Man that snippet saved me lot of headache.
Thank you for the post

# re: (407) Proxy Authentication Required. 8/24/2009 2:53 PM Reinaldo
This helped me so much. Thanks a lot!

# re: (407) Proxy Authentication Required. 9/3/2009 3:54 AM adanalı oyunları,adanalı oyunu
great article thanks


# re: (407) Proxy Authentication Required. 9/3/2009 3:55 AM ben10 games,ben 10 games
This helped me so much. Thanks a lot.

# re: (407) Proxy Authentication Required. 9/9/2009 1:10 AM Diyet
Man that snippet saved me lot of headache.
Thank you for the post.


# re: (407) Proxy Authentication Required. 9/9/2009 7:40 AM Claudio
Just illuminating

# re: (407) Proxy Authentication Required. 9/10/2009 4:11 AM WAP
Powared By http://www.limitsiz.com.tr

# re: (407) Proxy Authentication Required. 9/21/2009 2:32 PM oyunlar1
thank you admin very gud

# re: (407) Proxy Authentication Required. 10/1/2009 3:40 AM Adeel
Bro!! I thought it won't work but it did. Thanks Man.

# Youtube 10/8/2009 7:20 AM izlesene
Guzel paylasım..

# re: (407) Proxy Authentication Required. 10/9/2009 4:58 PM diyet
thanks that is very good..

# re: (407) Proxy Authentication Required. 10/28/2009 4:09 PM Porno sex izle
Thanks for that

# e-okul 10/30/2009 9:22 AM afsin
thank you admin very gud

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: