Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

FTP upload/download

Posted on by Microsoft Employee

Hey guys i have a task related to FTP but i never worked with it before and need some help.

When you download from FTP I want a copy to be saved on the client running NAV and one on the server where the Nav Service Tie is running.

Any suggestions ???

  • JeroenK Profile Picture
    JeroenK 15 on at
    RE: FTP upload/download

    Hi,

    I am using nav 17 and I'm unable to load the dotnet features as they are no longer supported by microsoft.

    You said in your blog to use the system.net.requests. How does this work? Can you share some code?

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: FTP upload/download

    See if this helps

    rockwithnav.wordpress.com/.../

  • mrkavin Profile Picture
    mrkavin 20 on at
    RE: FTP upload/download

    Unable to open port 21 for FTP.

    install FTP Server Windows 10

    Setup:

    I have a remote location running a web cam server. I had an old homebrew AMD64 PC running Windows 7 that I had set up and everything worked well. The web server used nginx and I had five cameras on the web site page. I had Filezilla FTP Server running and was able to FTP the server to upload and download files from a couple of off site Pcs. (Linux Ubuntu desktop with Fillzilla Client and a Windows 8 laptop with Core FTP LE Client)

    A couple of weeks ago we had a heavy wet spring snow storm which caused massive power outages. Three days later with power restored I booted the server and it went to boot repair. Long story short, the HDD was flaky and dying. So I bought a Optiplex 2070 and began rebuilding the server.

    The server is in a remote location with cable ISP to MODEM, cat5 to a Linksys EA2700 running DD-WRT, and cat5 to the server. The server is a Dell Optiplex 7020 running a fresh load of Windows 7 Pro and updates. (Thanks to Windows Seven on how to do the updates). Web software is nginx 1.17.10 and is running well. I can use Remote Desktop to connect to the server from my Ubuntu desktop and the Windows 8 laptop. The router has Port Forward set for the web server, Remote Desktop, and a web cam wired through a router port.

    Here is the problem:

    I am unable to connect to the server using FTP.

    I have scoured the net for three days trying to find out why I can not connect with no luck.

    I have tried:

    Forwarded router ports 21, 990, 50000 – 51000.

    FTP with and without TLS.

    Set access through Windows firewall – no luck.

    Disabled Windows firewall – no luck.

    Verified clients OK by FTP to other sites.

    Verified FTP and Filezilla are enabled in Widows firewall advanced settings.

    Checked open ports with “Canyouseeme.org”, ports show open for Web and Desktop, port 21 FAILS.

    Deleted and reinstalled Flezilla.

    Tried different FTP and loaded Quick&EasyFTP.

    Example of Client error:

    note – port xxx21 is forwarded to port 21 on the server.

    Resolving xxxxxx.xxxxxx.com...

    Connect socket #1172 to xxx.xxx.xxx.169, port xxx21...

    Can't establish connection --> xxxxxx.xxxxxx.com:xxx21 @ Wed May 06 14:04:56 2020 (0-5)

    Connection Failed

    Tried telnet to the server on port 21 and it also fails.

    Is there something simple I overlooked?

    Any help would be appreciated.

  • ShanAbeywicrema Profile Picture
    ShanAbeywicrema 940 on at
    RE: FTP upload/download

    When using second function, the following error comes,

    Unable to convert from Microsoft.Dynamics.Nav.Runtime.NavDotNet to Microsoft.Dynamics.Nav.Runtime.NavInStream.

    I think it due to this ResponseStream := FTPWebResponse.GetResponseStream();

    How to fix this error?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: FTP upload/download

    However i want to thank you guys for taking your time to respond to me :)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: FTP upload/download

    Sorry , what does NAV related technology means?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: FTP upload/download

    This is too difficult for a new NAV newcomer. You need to learn about NAV related technology first.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: FTP upload/download

    This is what i dont understand , when says address of ftp whats it ? An exampl please :-

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 on at
    RE: FTP upload/download

    So use your test FTP site as the address or search online for the free FTP server to test. FileZilla is just an application to access Server.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: FTP upload/download

    Yes i know the requirement .

    It is to write the code of uploading and downloading of file from Ftp site (test one) to nav client and a copy to Nav service tier.

    Thats all!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans