** TIMEOUT ERROR WITH PROXY -- HELP !**

A

Alberto

I'm becoming *crazy* with a problem:
* I have a simple WebService, called "HelloWorld"
* I access the web server using a proxy (SQUID on linux).
* If my proxy does not require authentication, all works fine!
* If my proxy REQUIRE authentication, I cannot reach my service and I
have a "Time out" error.

Here is the code,

-- CODE -----
[..]

' Set proxy credentials (NOTE: Domain is empty..)
Dim cr As New System.Net.NetworkCredential("proxyUser", "proxyPWD",
"")
Dim pr As System.Net.WebProxy

' NOTE: using GetDefaultProxy or setting manually is the same result.
pr = New WebProxy("10.23.0.66", 3128)
'pr = WebProxy.GetDefaultProxy

pr.Credentials = cr
service.Proxy = pr
service.timeout = 10000 '10 seconds timeout

result = service.helloWord() ' <------ TIMEOUT ERROR!!

-- END CODE ----


Is this a known problem with Squid ??
Thanks for ANY help!!

ALberto G.
(e-mail address removed)
 
A

Alberto

John,
yes, my proxy require authentication, and this is my problem.

If I access my service page (.ASMX) usging internet explorer, IE
prompt me for proxy user/pwd.
If I use my application, i supply proxy username/pwd via webproxy
object

Dim cr As New System.Net.NetworkCredential("proxyUser",
"proxyPWD", "")
pr = New WebProxy("10.23.0.66", 3128)
pr.Credentials = cr

When I call my servixce, i have a "request is timed out" exception.

John Jenkins said:
How are you handling authentication?

Alberto said:
I'm becoming *crazy* with a problem:
* I have a simple WebService, called "HelloWorld"
* I access the web server using a proxy (SQUID on linux).
* If my proxy does not require authentication, all works fine!
* If my proxy REQUIRE authentication, I cannot reach my service and I
have a "Time out" error.

Here is the code,

-- CODE -----
[..]

' Set proxy credentials (NOTE: Domain is empty..)
Dim cr As New System.Net.NetworkCredential("proxyUser", "proxyPWD",
"")
Dim pr As System.Net.WebProxy

' NOTE: using GetDefaultProxy or setting manually is the same result.
pr = New WebProxy("10.23.0.66", 3128)
'pr = WebProxy.GetDefaultProxy

pr.Credentials = cr
service.Proxy = pr
service.timeout = 10000 '10 seconds timeout

result = service.helloWord() ' <------ TIMEOUT ERROR!!

-- END CODE ----


Is this a known problem with Squid ??
Thanks for ANY help!!

ALberto G.
(e-mail address removed)
 

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
474,264
Messages
2,571,065
Members
48,770
Latest member
ElysaD

Latest Threads

Top