I am trying to use FtpWebRequest.Proxy
and have it set to GlobalProxySelection.GetEmptyWebProxy()
however i get a compliler warning
Warning 1 'System.Net.GlobalProxySelection' is obsolete: '"This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202"'
it reccomends to use null, but from FtpWebRequest.Proxy's page under the execptions section it says
ArgumentNullException - This property cannot be set to null.
What is the correct thing to do?