468,107 Members | 1,394 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,107 developers. It's quick & easy.

Web Service call through Webproxy (bypass doesn't work)

Hi,

we call a web service in an intranet environment. The target host is
bypassed as of the IE setting. We retrieve the system proxy settings through
"myService.Proxy = WebRequest.GetSystemWebProxy()". The host is in the
isBypassed list of the proxy object. The proxy credentials are the default
credentials of the login account (DefaultCredentials) and this account is
able to browse to the web service via IE.
But when we want to connect to the web service on this host the web proxy is
still queried. The whole request is cancelled due to authentication problems
on the web proxy.
If we set the "myService.Proxy = null" the request also didn't work (proxy
authentication required).
It only works when we use

<system.net>
<defaultProxy>
<proxy usesystemdefault="False"/>
</defaultProxy>
</system.net>

in the app settings.

Does somebody know whats the problem with setting the web proxy through
code? Why is the proxy queried even if the target host is in the bypass list?
Do we miss something here?
Thanks,
Jun 1 '06 #1
0 1364

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Bill Hauver | last post: by
reply views Thread by JTowns | last post: by
reply views Thread by dan kisting | last post: by
reply views Thread by Albertas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.