473,408 Members | 1,767 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,408 software developers and data experts.

.NET 2 webservice proxy server detection

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
Mar 26 '07 #1
3 4727
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/is...etection/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/subscripti...ult.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/subscripti...t/default.aspx.

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

This posting is provided "AS IS" with no warranties, and confers no rights.



Mar 27 '07 #2
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
This posting is provided "AS IS" with no warranties, and confers no rights.
Mar 29 '07 #3
http://msdn.microsoft.com/msdnmag/is...n/default.aspx

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

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Apr 11 '07 #4

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

Similar topics

4
by: Flare | last post by:
OK. I'll try explain my problem so simple as possible. I have to send a complex data type to a WebService from a Asp.net webapplication. My Data type look like this. (A class with a porperty)...
4
by: Tommy | last post by:
hello, i try´d to use an webservice like Global Weather http://www.webservicex.net/globalweather.asmx?WSDL i have add a reference to my asp.net-website and write the follwing...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i don´t want to filter the return value of the method, i have to pass a new instance of the...
4
by: MacLanca | last post by:
Hi, I've done the HelloWorld WebService, installed in a WebServer (INTERNET) When I call it with Windows App it works, if I use a webform it doesn’t (INTERNET) Both of them work in the INTRANET...
3
by: Mark | last post by:
I'm consuming a webservice that makes a simple object available. The object class is marked in the web service as . I have a web application that consumes and uses this web service's class. When...
4
by: Boni | last post by:
I want consuming a webserivce trough a proxy. I use this code. myService s = new myService (); System.Net.WebProxy proxyObject = new System.Net.WebProxy("http://proxyhost:8080"); s.Proxy =...
2
by: stormogulen | last post by:
Hi! I'm having some problems figuring out how to organize the different tiers of an application using a webservice. The bottom layer is the DAL, and some of the objects in the DAL, I would...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.