all groups > dotnet web services > march 2007 >
You're in the

dotnet web services

group:

.NET 2 webservice proxy server detection


.NET 2 webservice proxy server detection chrisexentra NO[at]SPAM newsgroups.nospam
3/26/2007 5:05:21 PM
dotnet web services:
Hi,

We have .NET 1.1 WinForms apps accessing webservices through proxy servers
in various companies using different proxy server setups. Our WinForms app
is currently configurable to either use the default settings from IE, or to
allow an explicit proxy server uri to be specified - using this information
we set the .Proxy on the webservice proxy object to a WebProxy object that
we create using 'new System.Net.WebProxy("11.22.33.44:8080")'.

I (think I) understand that .NET 2 none of this is necessary and that
auto-detection of proxy server settings happens. My question is: Do I have
to do anything to make this happen? How should be code our WinForms client
app in .NET 2 so that it can be used and will work in all proxy server
scenarios?

Thanks for any advice.

Chris

RE: .NET 2 webservice proxy server detection stcheng NO[at]SPAM online.microsoft.com
3/27/2007 12:00:00 AM
Hi Chris,

As for the proxy setting detection of .net framework application, it has
been much enhanced from .net framework 1.1 to 2.0. For .net framework 1.1,
though it by default can detect and use the system wide proxy setting(of
the internet settings ), it only pickup the static configured proxy
address, but can not use the "Automatic detecting" or "Automatic script
configuration" feature.

In .net framework 2.0, this is improved and .net framework application's
proxy detecting act identically to what the internet explorer do. Here is
a very good MSDN article describe this detailedly:

#Proxy Detection---Take the Burden Off Users with Automatic Configuration
in .NET
http://msdn.microsoft.com/msdnmag/issues/05/08/AutomaticProxyDetection/defau
lt.aspx

for your scenario here, what you need to care about are:

** whether you want your application to use the system wide proxy server
setting(as the one IE use)

** whether your application is running under an interactive account
(internet proxy setting is per user by default)

** If you want to programmatically supplyl proxy setting or use .net
app.config file to supply proxy setting.

If you want to use system's default proxy setting, you do not need to do
anything particular in your application(unless it is running under a
non-interactive account).

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



RE: .NET 2 webservice proxy server detection stcheng NO[at]SPAM online.microsoft.com
3/29/2007 2:29:14 PM
Hi Chris,

Have you got any progress on this or does the information in my last reply
helps you some? If you have any further questions, please feel free to post
here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


vb.net winform proxy webservice Xmit
4/11/2007 9:58:30 AM
http://msdn.microsoft.com/msdnmag/issues/05/08/AutomaticProxyDetection/default.aspx

how to get its 1.1 version ?
Does it have a 1.1 version feature ?

EggHeadCafe.com - .NET Developer Portal of Choice
AddThis Social Bookmark Button