locked
WinSCP error for SFTP adapter in Biztalk 2016 servers RRS feed

  • Question

  • Hi All,

    we are using SFTP adapter to connect to SFTP in BizTalk 2016 server. 

    While doing so, am getting below error in event log:

    TSystem.Exception: SFTP adapter requires WinSCP to be installed. Please refer http://go.microsoft.com/fwlink/?LinkID=730458&clcid=0x409 . ---> System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.BizTalk.Adapter.Sftp\v4.0_3.0.1.0__31bf3856ad364e35\WinSCPnet.dll' or one of its dependencies. The system cannot find the file specified.

    Tried installing WinSCP latest version available for BT2016 with CU5 is 5.1.3.4 but still getting above same error. I did check some of the links advising to install winscp using powershell and copying the Winscp.exe and winscpnet.dll together to biztalk 2016 installation folder in C:\Program Files (x86)\Microsoft BizTalk Server 2016 still is of no use. I also read of not GACing the dll so not sure how this process actually works. Any help is much appreciated. Thank you. 

    Look forward for help/suggestions. Please advise.

    Wednesday, October 17, 2018 10:11 AM

Answers

  • Try to not install WinSCP (to GAC). Uninstall WinSCP and just do copy/paste of the automation .exe and .dll to BizTalk installation folder. (5.7.7 for RTM-CU4 or 5.13.1 for CU5)
    • Marked as answer by Lathaa Saturday, May 11, 2019 12:18 PM
    Wednesday, November 14, 2018 3:09 PM

All replies

  • I struck the same problem today but I have CU5 installed.

    Do you have CU 5 installed ? If so then you need to use v 5.13.1 https://support.microsoft.com/en-us/help/4087345/sftp-adapter-improvements-for-biztalk-server

    I also followed http://microsoftintegration.guru/2016/12/19/biztalk-2016-sftp-adapter-how-to-set-it-up-properly/

    but instead of using the 5.7.7 exe and .net library, I used the 5.13.1 versions. the conection now works.

    I hope this helps you.

    Thursday, October 25, 2018 11:48 PM
  • Hi 
    i installed Cu5 updates in biztalk environment got same problem

    currently we are using winscp 5.7.7

    can anyone please let me know 

    steps to upgrade winscp5.7.7 to 5.13.1

    Wednesday, November 14, 2018 2:56 PM
  • Try to not install WinSCP (to GAC). Uninstall WinSCP and just do copy/paste of the automation .exe and .dll to BizTalk installation folder. (5.7.7 for RTM-CU4 or 5.13.1 for CU5)
    • Marked as answer by Lathaa Saturday, May 11, 2019 12:18 PM
    Wednesday, November 14, 2018 3:09 PM
  • thanks for your valuable answer.

    its great full if you provide step by step procedure.

    or such any link   is very help full to me
    since I am very new to this type of installation.



    Thanks in advance.

     
    Thursday, November 15, 2018 12:38 PM
  • Uninstalling WinSCP (removes wrong version from GAC) and copy the .exe and the .dll from this automation package into BizTalk installation folder should be enough: https://sourceforge.net/projects/winscp/files/WinSCP/5.13.1/WinSCP-5.13.1-Automation.zip/download

    You can use different WinSCP version also with .config file change to redirect between versions, but I would recommend using 5.13.1 unless you have specific issue only working in other WinSCP version. 

    https://docs.microsoft.com/en-us/biztalk/core/sftp-adapter#use-a-newer-winscp-version

    Thursday, November 15, 2018 2:53 PM
  • Hi Niklas,

    thanks a lot for your inputs.

    let me know can I simply copy paste newer versions of winscp.exe and winscpnet.dll in biztalk installation directory
    directly as per below mentioned link?

    https://randypaulo.com/2018/08/13/biztalk-sftp-adapter-missing-winscpnet-library/

    please correct me if it is wrong...


    Friday, November 16, 2018 2:53 AM
  • i copied files and its working fine but
    why we are doing copy exe instead of installing? 
    Monday, November 19, 2018 12:40 PM
  • Great that it works now. :) BizTalk use automation (background work) and it is enough with the automation download which is copy/paste without installer. 
    https://sourceforge.net/projects/winscp/files/WinSCP/5.13.1/WinSCP-5.13.1-Automation.zip/download
    Monday, November 19, 2018 2:27 PM
  • Hi Niklas,

    Thanks for your help and valuable info .

    one of my lead asking for to install winscp instead of coping files is that make any sense?
    If I allowed to install Should I install in Biztalk2016 directory?

    Tuesday, November 20, 2018 5:12 AM