The application I am writing should use .Net Remoting (I know that WCF is a "new thing", but unfortunately it is not available at this point).
In any case, everything works fine unless I try to use the application through a proxy. However, the application must work with proxies. I configured HttpChannel and set the properties "proxyName" and "proxyPort" to their correct values. This allows the channel to use the proxy server without any problems.
I have the following problems:
1: If the proxy requires authentication, there seems to be no way to set the credentials that the channel should use to authenticate with the proxy. I tried both the "credentials" property and the "username" and "password" properties, but it does not seem to work. Thus, the end result is when the proxy requires authentication, and simply returns an authentication error whenever the remote method is called.
2: I cannot force HttpChannel to use the system default web proxy. If Internet Explorer is configured to use a proxy server, I should just use WebRequest.GetSystemWebProxy () to get it. However, this returns IWebProxy, and I cannot extract the host and port from it. If anyone knows a way to do this, I would really appreciate it.
What is disappointing is that if you execute the code using Visual Studio and study the HttpChannel class, a WebProxy object will appear. Life would be much simpler if they provided access to it!
, , , , HttpChannel - - , -, , - Internet Explorer? , - ?
!