Sunday, April 11, 2010

The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the W

I got this error , it is very amazing for me because sometimes it works and sometimes it throws me error. Actually firewall needs your credentials to verify you so, use this code snippet .

WebProxy wbProxy = new WebProxy();
wbProxy.Credentials = CredentialCache.DefaultCredentials;
objService.Proxy = wbProxy;
It works for me!!

1 comment:

Zubair.NET! said...

Salaam Nazish,

Hope you're doing good, just came across your blog through asp.net website and contacted you to stay in touch and let you know that I'm also a .NET dev based in Dubai and maintain a blog at http://blog.zubairahmed.net

-Zubair