472,958 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Disable default Proxy setting for Microsoft.Web.Services2.WebServicesClientProtocol object

Hello All,

I am working on a desktop application using C#. The application
connects to a remote webservice to update and retrieve data from a
database. I also have a settings Tab in the application UI that allows
the user to enter the proxy server information if needed.

When the user selects the "Use Proxy" Checkbox in the settings tab, I
ask them to provide the server address and port number and also the
login information is required. I am using the WebProxy class to add the

proxy setting to the webservice object.

service.Proxy = new WebProxy(this.strProxyServerAddress);

where service is an object of the wrapper class to access the

The issue:
When the user does not select the "Use Proxy Server" setting, I do not
attach a Proxy to the request but it seems to be picking up the default

Proxy server settings on the machine.

The expected behavior here should be that if a proxy server is required

to access the internet and the user has not selected the "Use Proxy"
option in the application then the connection should fail.

Is there any way of setting the
Microsoft.Web.Services2.WebServicesClientProtocol object not to use a
proxy server at all ?

Thanks in advance

Jul 10 '06 #1
0 1746

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

Similar topics

by: Carl Waldbieser | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** When using urllib2.urlopen() on my Windows 2000 machine at work, I was puzzled that I kept getting back authentication errors from...
by: Thomas S. Trias | last post by:
If you specify a Destination with both an Address and a Via, the Address is used as both the Url property (transport) AND the "To" SOAP header. The Via portion is effectively ignored, making it...
by: A.M-SG | last post by:
Hi, I have a web service with two soap extensions enabled on it. When I run the default IIS method invoke page, the invoke button bypasses all my soap extensions. But when I call the...
by: Julian Jelfs | last post by:
Hi, In Visual Studio 2005 it appears that you don't have access to the proxy class generated by the tool when you add a reference to a web service. This is a problem for me since I have a web...
by: sameer | last post by:
..NET Framework 1.1 VS2003 Application is making webservice calls from behind a proxy server and then freezes and dies. Questoin is can i use webservice over proxy server( i guess another name...
by: Joseph Geretz | last post by:
System.InvalidOperationException: WebServiceBindingAttribute is required on proxy classes. My environment: Visual Studio 2005, targeting FX 2.0; I've developed a Web Service which uses DIME to...
by: bobleponge | last post by:
Hi aLL how can I do to enable and disable IE proxy just in one clik button with Visual Basic please. thank you.
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...
by: Jon | last post by:
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...
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.