Hi Jon,
Thanks for your reply.
Oops... I'm sorry for the omit. Trust me that I'm was not making joke :-).
here is the msdn reference, should be the best one which describe about the
proxy settings I've seen so far:
#Take the Burden Off Users with Automatic Configuration in .NET
http://msdn.microsoft.com/en-us/magazine/cc300743.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Jon" <.>
References: <ui**************@TK2MSFTNGP03.phx.gbl>
<vs**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: Accessing a web service - proxy problem
Date: Fri, 9 May 2008 09:43:08 +0100
Lines: 79
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
Message-ID: <en**************@TK2MSFTNGP05.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: 212.2.3.58
Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TNGP05.phx.gbl
microsoft.public.dotnet.framework.webservices:3525
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Hi Steven,
Thanks very much for your help with this.
You mentioned this article "Here is a good MSDN article mentioned details
about proxy detection in
.NET framework (from 11. to 2.0)" but didn't provide a link to it. Could
you provide the link
please?
Thanks,
Jon
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:vs**************@TK2MSFTNGHUB02.phx.gbl...
Hi Jon,
As for the network wroxy setting, for .NET webservice proxy class(or other
webrequest components), you can explicitly assign a webproxy(and
credentials if authentication required) to it. e.g.
=====
Webservice client = new Webservice();
client.Proxy = new WebProxy(servername, port);
=======
the following article provide a detailed example:
#Consuming a Webservice from behind a Proxy Firewall
http://www.c-sharpcorner.com/UploadF...hindproxy11212
006054829AM/webservicebehindproxy.aspx
Also, you can take full advantage of system or webbrowser proxy settings
from .NET framework 2.0. However, the detailed behavior depand on the
account under which your application is running and also the proxy setting
model(global or per user) is used on the machine. Here is a good MSDN
article mentioned details about proxy detection in .NET framework (from 11.
to 2.0)
Hope this helps.
Sincerely,
Steven Cheng
From: "Jon" <.>
Subject: Accessing a web service - proxy problem
Date: Wed, 7 May 2008 17:11:35 +0100
I wrote a VS 2005 C# express programme that accesses a web service. It
works fine when there's a
direct connection to the internet, but on two different PCs with internet
access via a proxy, I get
this exception:
System.Net.WebException: The request failed with HTTP status 407: Proxy
Authentication Required.
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClient
Message message,
WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[]
parameters)
The internet works fine on this PC with IE and Firefox. In these two
browsers, a proxy is set up.
Use a proxy server for your LAN is ticked, and the address and port (80)
has been entered.
Am I right in saying that my programme is not able to access the settings
of the web browsers, so I
need to configure my programme with the proxy details. If so, how do I
supply this information to
the proxy. Or is there a way to access the settings from IE/Firefox?