We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Unable to connect to the remote ftp server

Thread ID:

Created:

Updated:

Platform:

Replies:

146971 Aug 27,2019 09:22 AM UTC Sep 5,2019 12:01 PM UTC jQuery 3
loading
Tags: ejFileExplorer
Prince
Asked On August 27, 2019 09:22 AM UTC

I'm trying to connect to a remote FTP server using the file explorer control. I used the demo WebAPI provided on the how to page. But I keep getting an error message in the form of:

System.Net.WebException, Unable to connect to the remote server

I would like some assistance with this.

Ashokkumar Balasubramanian [Syncfusion]
Replied On August 28, 2019 12:40 PM UTC

 
Hi Prince, 
 
Good day to you. 
 
We have checked your reported problem at our end. The reported problem may be occurring on not properly specify the path for FTP server. Could you please ensure whether you have properly specified the path & ajaxAction property for File Explorer? 
 
<script type="text/javascript"> 
    $(function () { 
        $("#fileExplorer").ejFileExplorer({ 
            //Path of the folder that you want to view in FileExplorer. 
            path: "ftp://193.162.51.33/", 
            //Path of file handling operation method 
            ajaxAction: "http://localhost:51460/FileExplorer/FileOperation/doJSONAction" 
        }); 
    }) 
</script> 
 
Also, could you please ensure whether the FTP server is logged in with proper credentials? 
 
Please let us know, if you need any further assistance on this. 
 
Regards, 
Ashokkumar B. 
 


Prince
Replied On September 5, 2019 12:05 AM UTC

Hi Ashokkumar.
I checked the path and the ajaxAction property and everything is in order. I tried accessing the FTP server from my regular client (FileZilla) and it works. I have full read and write access but this is what I get when I try to use the file explorer control:

This is the script for the control:

<script type="text/javascript">
$(function () {
$("#fileExplorer").ejFileExplorer({
width: "100%",
//Path of the folder that you want to view in FileExplorer.
path: "ftp://192.168.43.246:2121/",
//Path of file handling operation method
ajaxAction: "http://localhost:51460/FileExplorer/FileOperation/doJSONAction",
// resize
enableResize: true,
// responsiveness
isResponsive: true

});
});

</script>

I would really appreciate any assistance you can provide.

Thanks, Prince.

Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On September 5, 2019 12:01 PM UTC

Hi Prince, 
 
Good day to you. 
 
Based on the provided error screenshot, we suspect that the ftp path provided may have sub folders which has required files. If not share us the screenshot on the content which is present in the provided FTP path. We have also checked this issue generally and kindly try out the below suggestions which may help you to resolve the issue. 
 
 
 
Check the above details and get back to us with requested information to proceed further on this? 
 
Regards, 
Vinoth Kumar S 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon