473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

proxy authentication taking forever or at last 100 seconds

I have a vb.net 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,
CInt(sProxyPort))
Else
scProxy = New System.Net.WebProxy(sProxyServer, True)
End If

If sProxyDomain.Length > 0 Then
scProxy.Credentials = New
System.Net.NetworkCredential(sProxyUserName, sProxyPassword, sProxyDomain)
Else
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 system.net.webproxy
scWSDB.Credentials = scProxy.Credentials
Else
scWSDB.Proxy = scProxy ' as new system.net.webproxy
scWSDB.Credentials = scProxy.Credentials
End If
'****************************
--
greg weber
autoeforms
Feb 14 '06 #1
0 966

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jonas Cord | last post by:
Hi, I'm trying to learn proxy classes in C++ so I've written the following code, trying to modify an example given in Deitel & Deitel's C++ book. I am trying to "hide" details of the original...
3
by: Wild Wind | last post by:
Hello all, I apologise in advance for the long windedness of this post, but I feel that if I am going to get any solution to this problem, it is important that I present as much information...
1
by: Tony Stephens | last post by:
Hi, I've created a small forms based application in c# to test a vendor's product and the web service interface that it exposes. We have deployed two instances of the vendor product one which...
7
by: Pro1712 | last post by:
Hello, I need to write a simple proxy server. What I want to do is to use HttpListener to get requests from the browser, add some proxy information and some other stuff and send the request to...
2
by: rcp | last post by:
Hi all, I've read all posts from all existing threads and none of them worked to solve my problem, although its exactly the same. I'll try to explain my case and see if a kind soul could help me...
0
by: dan kisting | last post by:
Hello, I am writing a c# application which connects to web services through a Proxy Server. I am running a local Proxy Host to simulate what the user is seeing, and his problem is he is getting...
1
by: dan kisting | last post by:
Hello, I am writing a c# application which connects to web services through a Proxy Server. I am running a local Proxy Host to simulate what the user is seeing, and his problem is he is getting...
7
by: chandru1782 | last post by:
Dear friends, I am trying to use CPAN for installing some perl modules. i am using a ubuntu system, which has internet connection through lan and authenticated proxy. when trying to install...
2
by: =?Utf-8?B?TGVuc3Rlcg==?= | last post by:
A C# (.NET 2) application which uses the System.Net.HttpWebRequest object to request a resource over HTTPS is failing following the installation of a new proxy server on our internal network with...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.