ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Copy files from FTP Server Error: SSL cannot be enabled when using a proxyHi @sjdali797,<br />Please try the following<br /><br /><a href = 'link(Threads/200613/Copy-File-from-FTP-Web-Server-to-specific-folder-using-C-and-VBNet-in-ASPNet/)'>Copy File from FTP Web Server to specific folder using C# and VB.Net in ASP.Net</a><br /><br />It might help you.<br /><br />Cheers Andrea.https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/Tue, 02 Jul 2019 06:23:45 GMTCopy files from FTP Server Error: SSL cannot be enabled when using a proxy<p>Thanks for your reply. But it's not working because i need to&nbsp;copy files from FTP Server using TLS/SSL Explicit Encryption in asp.net c#</p>https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/Tue, 02 Jul 2019 23:53:04 GMTCopy files from FTP Server Error: SSL cannot be enabled when using a proxy<p>THANKS FOR YOUR REPLY WHENEVER I HAVE USED THIS CODE AND TRYING TO ENABLESSL=TRUE THEN IT SHOWS ERROR <strong>"SSL cannot be enabled when using a proxy"</strong></p> <pre class="brush: csharp"> string ftp = &#34;ftp://SERVER.COM/&#34;; //FTP Folder name. Leave blank if you want to list files from root folder. string ftpFolder = &#34;&#34;; try { //Create FTP Request. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(ftp + ftpFolder); request.Method = WebRequestMethods.Ftp.ListDirectoryDetails; request.AuthenticationLevel = AuthenticationLevel.None; //Enter FTP Server credentials. request.Credentials = new NetworkCredential(&#34;USERNAME&#34;, &#34;PASSWORD&#34;); request.UsePassive = false; request.UseBinary = false; request.EnableSsl = true; request.KeepAlive = false; ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(ValidateServerCertificate); //Fetch the Response and read it using StreamReader. FtpWebResponse response = (FtpWebResponse)request.GetResponse(); List&lt;string&gt; entries = new List&lt;string&gt;(); using (StreamReader reader = new StreamReader(response.GetResponseStream())) { //Read the Response as String and split using New Line character. entries = reader.ReadToEnd().Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries).ToList(); } response.Close(); //Create a DataTable. DataTable dtFiles = new DataTable(); dtFiles.Columns.AddRange(new DataColumn[3] { new DataColumn(&#34;Name&#34;, typeof(string)), new DataColumn(&#34;Size&#34;, typeof(decimal)), new DataColumn(&#34;Date&#34;, typeof(string))}); //Loop and add details of each File to the DataTable. foreach (string entry in entries) { string[] splits = entry.Split(new string[] { &#34; &#34;, }, StringSplitOptions.RemoveEmptyEntries); //Determine whether entry is for File or Directory. bool isFile = splits[0].Substring(0, 1) != &#34;d&#34;; bool isDirectory = splits[0].Substring(0, 1) == &#34;d&#34;; //If entry is for File, add details to DataTable. if (isFile) { dtFiles.Rows.Add(); dtFiles.Rows[dtFiles.Rows.Count - 1][&#34;Size&#34;] = decimal.Parse(splits[4]) / 1024; dtFiles.Rows[dtFiles.Rows.Count - 1][&#34;Date&#34;] = string.Join(&#34; &#34;, splits[5], splits[6], splits[7]); string name = string.Empty; for (int i = 8; i &lt; splits.Length; i++) { name = string.Join(&#34; &#34;, name, splits[i]); } dtFiles.Rows[dtFiles.Rows.Count - 1][&#34;Name&#34;] = name.Trim(); } } //Bind the GridView. gvFiles.DataSource = dtFiles; gvFiles.DataBind(); } catch (WebException ex) { throw new Exception((ex.Response as FtpWebResponse).StatusDescription); }</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/Wed, 03 Jul 2019 00:01:11 GMTCopy files from FTP Server Error: SSL cannot be enabled when using a proxy<p>Refer below links.</p> <p><a href="https://rationaldev.com/ssl-cannot-be-enabled-when-using-a-proxy/">https://rationaldev.com/ssl-cannot-be-enabled-when-using-a-proxy/</a></p> <p><a href="https://stackoverflow.com/questions/48004666/connect-to-ftps-with-proxy-in-c-sharp">https://stackoverflow.com/questions/48004666/connect-to-ftps-with-proxy-in-c-sharp</a></p> <p><a href="http://forum.rebex.net/2919/secure-using-ftpwebrequest-through-proxy-server-implicit">http://forum.rebex.net/2919/secure-using-ftpwebrequest-through-proxy-server-implicit</a></p> <p>&nbsp;</p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/Wed, 03 Jul 2019 00:08:32 GMTCopy files from FTP Server Error: SSL cannot be enabled when using a proxy<p>I have tried above Links now new Error is coming "<strong>Unable to connect to server</strong>"</p>https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/Wed, 03 Jul 2019 00:35:19 GMTCopy files from FTP Server Error: SSL cannot be enabled when using a proxy<p>Refer</p> <p><a href="https://stackoverflow.com/questions/12661744/ftp-request-to-server-can-not-connect-remote-server">https://stackoverflow.com/questions/12661744/ftp-request-to-server-can-not-connect-remote-server</a></p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/https://www.aspforums.net:443/Threads/925998/Copy-files-from-FTP-Server-Error-SSL-cannot-be-enabled-when-using-a-proxy/Wed, 03 Jul 2019 07:45:44 GMT