title: Windows server 2008 download unable to connect to the remote server
body: <p>I am downloading xml file from the server. It is a SSIS project using VS2008. Its working fine in the local computer but when i am using the same code in the server. I am getting an error. <code>Unable to connect to the remote server</code> </p>
  
  <p>This is my code to download the file. The Url has username and password.</p>
  
  <pre><code>  string url = "https://test.openseas.wlcl.com.au:8888/cruise/PA/priceSummary?AgentId=DIRECTAU&amp;format=xml";
    WebClient mySSISWebClient = new WebClient();
  
    mySSISWebClient.Credentials = new NetworkCredential();
    mySSISWebClient.Credentials = new NetworkCredential("username", "password");
    ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) =&gt; true;
    mySSISWebClient.Encoding = Encoding.Unicode;
  
    // To save the file (and replace the existing file)
    mySSISWebClient.DownloadFile(url , Dts.Variables["User::LocalSourceFile"].Value.ToString());
  </code></pre>
  
  <p>The above code is working fine locally but not in the server. Anyone can help me why it is not working in the server. Is it the firewall issue because if i just type the URL(<a href="https://test.openseas.wlcl.com.au:8888/cruise/PA/priceSummary?AgentId=DIRECTAU&amp;format=xml" rel="nofollow">https://test.openseas.wlcl.com.au:8888/cruise/PA/priceSummary?AgentId=DIRECTAU&amp;format=xml</a>) on my browser i get the error . <code>this connection is untrusted</code>.  Any one can help me that would be really great. </p>
  
  <p>Thanks in advance </p>