ISA server authentication failed error

R

rk1

Hi friends
i've .net component that i use in visual foxpro 9. this component
connects to a web service and returns some data.
when i ever i try to connect i get following error

"The request failed with HTTP status 407: Proxy Authentication
Required ( The ISA Server requires authorization to fulfill the
request. Access to the Web Proxy service is denied. )."

i know that since we have a proxy server in our network i need to pass
my login credentials to get it thru.
so i tried following
Proxy = System.Net.WebRequest.DefaultWebProxy;
sg.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;

help file says that "DefaultNetworkCredentials" will return current
login windows credentials but when i run with above code i get same
error!. but if i try following it works fine

System.Net.NetworkCredential credential = new
System.Net.NetworkCredential(@"username", "password","ourdomain");
Proxy.Credentials = credential;

this user name and password same as current logged in user but why my
first code does not work ?
am i missing anything here ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top