471,123 Members | 830 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 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 1631

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Carl Waldbieser | last post: by
2 posts views Thread by Julian Jelfs | last post: by
3 posts views Thread by bobleponge | last post: by
2 posts views Thread by =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post: by

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.