By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,165 Members | 1,429 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,165 IT Pros & Developers. It's quick & easy.

proxy authentication taking forever or at last 100 seconds

P: n/a
I have a application that uses web services.

everything was working great until i installed at a client that uses a linux
proxy server running squid
each user is required to authenicate when the access the net. Using IE they
are prompted for username and password and go right out.

When i specify the credentials and try to connect the application it waits
for 100 seconds, ironically that is the timeout setting.
When it comes back the connection is made then everything works as normal

if i back off the time out to 1 second it comes back and works fine. my
question is what is going on during this connection phase and how can i stop
it. something just doesn't seem right. setting the time out to 1 second is
sure to cause me problems in the future when i am issuing SQL commands
instead of just a test to see if the web server is available.

i have built a test app that takes username, password, port and and ip
address and have tried to find a combination that works
a code sample is below

hope this all makes sense
thanks for any and all help

If IsNumeric(sProxyPort) Then
scProxy = New System.Net.WebProxy(sProxyServer,
scProxy = New System.Net.WebProxy(sProxyServer, True)
End If

If sProxyDomain.Length > 0 Then
scProxy.Credentials = New
System.Net.NetworkCredential(sProxyUserName, sProxyPassword, sProxyDomain)
scProxy.Credentials = New
System.Net.NetworkCredential(sProxyUserName, sProxyPassword)
End If
' change the way we setup based on check box setting
If Me.CheckBox1.Checked Then
System.Net.GlobalProxySelection.Select = scProxy
scWSDB.Proxy = scProxy ' as new
scWSDB.Credentials = scProxy.Credentials
scWSDB.Proxy = scProxy ' as new
scWSDB.Credentials = scProxy.Credentials
End If
greg weber
Feb 14 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.