This project has moved. For the latest updates, please go here.

Unable to connect to SFTP server

Jan 30, 2015 at 3:52 PM
Hello,

We tried using the adapter to connect to a server, but when the connection is made we get the following error
"BSFTP". Reason: "Microsoft.BizTalk.Adapter.SftpInvoker.SftpException: Create SFTP facade error.

Checked the connection with FileZilla and it works fine there.Not sure why is this happening. Help us in sorting this out.
Coordinator
Feb 2, 2015 at 10:16 AM
Could you please provide the call stack. Also, try using debugview to get some more info (have a look in the documentation to see how to use it).

Cheers
Mikael
Feb 4, 2015 at 7:20 PM
Hello Mikael,

After using Debugview,

00000001 0.00000000 [6052] MMCTraceSoruce Information: 2 :
00000002 0.00732301 [6052] ###PERF READING### ###SCENARIO: Receive Location1 OnDisable
00000003 0.05437902 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void .ctor()
00000004 0.05471002 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void Initialize(System.String)
00000005 0.05490662 [6052] adapterGuid={b4f8c77d-08c9-4b82-9922-abb646654deb}
00000006 0.05514507 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String SetConfigurationUri(System.String, System.String)
00000007 0.05527601 [6052] configuration=CONFIDENTIAL
00000008 0.05544727 [6052] uri=SFTP://abc.net/out/.
00000009 0.05600636 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String ValidateConfiguration(Microsoft.BizTalk.Adapter.Framework.ConfigType, System.String)
00000010 0.05622216 [6052] configType=ReceiveLocation
00000011 0.05634426 [6052] configuration=CONFIDENTIAL
00000012 0.05672019 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void ReadAdapterInfoFromRegistry()
00000013 0.05727428 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void Instantiate()
00000014 0.05738295 [6052] adapterName=Blogical.Shared.Adapters.Sftp v1
00000015 0.05751005 [6052] assemblyFile=E:\Program Files (x86)\Blogical\Blogical.Shared.Adapters.Sftp\Blogical.Shared.Adapters.Sftp.Management.dll
00000016 0.05789442 [6052] typeName=Blogical.Shared.Adapters.Sftp.Management.StaticAdapterManagement
00000017 0.20926882 [6052] MMCTraceSoruce Information: 2 :
00000018 0.20931451 [6052] ###PERF READING### ###SCENARIO: Receive Location1 OnDisable### ###Time(ms): 211###
00000019 0.20946158 [6052] MMCTraceSoruce Information: 2 :
00000020 0.20954068 [6052] ###PERF READING### ###SCENARIO: Receive Locations FireRefresh
00000021 0.22030805 [6052] MMCTraceSoruce Information: 2 :
00000022 0.22036219 [6052] ###PERF READING### ###SCENARIO: Receive Locations Results
00000023 0.23211525 [6052] MMCTraceSoruce Information: 2 :
00000024 0.23216440 [6052] ###PERF READING### ###SCENARIO: Receive Locations Results### ###Time(ms): 11###
00000025 0.30325642 [6052] MMCTraceSoruce Information: 2 :
00000026 0.30330366 [6052] ###PERF READING### ###SCENARIO: Receive Locations FireRefresh### ###Time(ms): 93###
00000027 2.09137416 [6052] MMCTraceSoruce Information: 2 :
00000028 2.09377909 [6052] ###PERF READING### ###SCENARIO: Receive Location1 OnEnable
00000029 2.09401441 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void .ctor()
00000030 2.09410501 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void Initialize(System.String)
00000031 2.09425259 [6052] adapterGuid={b4f8c77d-08c9-4b82-9922-abb646654deb}
00000032 2.09433579 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String SetConfigurationUri(System.String, System.String)
00000033 2.09445620 [6052] configuration=CONFIDENTIAL
00000034 2.09478164 [6052] uri=SFTP://abc.net/out/.
00000035 2.09490085 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: System.String ValidateConfiguration(Microsoft.BizTalk.Adapter.Framework.ConfigType, System.String)
00000036 2.09499836 [6052] configType=ReceiveLocation
00000037 2.09518790 [6052] configuration=CONFIDENTIAL
00000038 2.09546876 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void ReadAdapterInfoFromRegistry()
00000039 2.09555197 [6052] Microsoft.BizTalk.Adapter.Framework.Forms.AdapterProxy: Void Instantiate()
00000040 2.09562945 [6052] adapterName=Blogical.Shared.Adapters.Sftp v1
00000041 2.09570622 [6052] assemblyFile=E:\Program Files (x86)\Blogical\Blogical.Shared.Adapters.Sftp\Blogical.Shared.Adapters.Sftp.Management.dll
00000042 2.09741163 [6052] typeName=Blogical.Shared.Adapters.Sftp.Management.StaticAdapterManagement
00000043 2.18609262 [6052] MMCTraceSoruce Information: 2 :
00000044 2.18615294 [6052] ###PERF READING### ###SCENARIO: Receive Location1 OnEnable### ###Time(ms): 95###
00000045 2.18623424 [6052] MMCTraceSoruce Information: 2 :
00000046 2.18628573 [6052] ###PERF READING### ###SCENARIO: Receive Location1 Refresh
00000047 2.37698460 [6052] MMCTraceSoruce Information: 2 :
00000048 2.37704515 [6052] ###PERF READING### ###SCENARIO: Receive Locations Results
00000049 2.39504337 [6052] MMCTraceSoruce Information: 2 :
00000050 2.39695525 [6052] ###PERF READING### ###SCENARIO: Receive Locations Results### ###Time(ms): 17###
00000051 2.47367668 [6052] MMCTraceSoruce Information: 2 :
00000052 2.47373080 [6052] ###PERF READING### ###SCENARIO: Receive Location1 Refresh### ###Time(ms): 287###
00000053 697.89746094 [6052] Buffer insufficient for RenderEvent for User Values, Retrying with the correct buffer-122-The data area passed to a system call is too small
00000054 697.89788818 [6052] EvtFormatMessage failed because of insufficient memory. Retrying with correct memory-0-The operation completed successfully
00000055 697.90161133 [6052] RenderEventToBuffer failed because of insufficient memory.-122-The data area passed to a system call is too small
00000056 697.90185547 [6052] RenderEventToBuffer failed because of insufficient memory.-122-The data area passed to a system call is too small
00000057 697.93402100 [6052] Trace Start:0End Index:28
00000058 700.09051514 [6052] Buffer insufficient for RenderEvent for User Values, Retrying with the correct buffer-122-The data area passed to a system call is too small
00000059 700.09149170 [6052] EvtFormatMessage failed because of insufficient memory. Retrying with correct memory-0-The operation completed successfully
00000060 700.09808350 [6052] RenderEventToBuffer failed because of insufficient memory.-122-The data area passed to a system call is too small
00000061 700.09851074 [6052] RenderEventToBuffer failed because of insufficient memory.-122-The data area passed to a system call is too small
00000062 703.34082031 [6052] Buffer insufficient for RenderEvent for User Values, Retrying with the correct buffer-122-The data area passed to a system call is too small
00000063 703.34136963 [6052] EvtFormatMessage failed because of insufficient memory. Retrying with correct memory-0-The operation completed successfully
00000064 703.34497070 [6052] RenderEventToBuffer failed because of insufficient memory.-122-The data area passed to a system call is too small
00000065 703.34613037 [6052] RenderEventToBuffer failed because of insufficient memory.-122-The data area passed to a system call is too small
00000066 706.99346924 [6052] Buffer insufficient for RenderEvent for User Values, Retrying with the correct buffer-122-The data area passed to a system call is too small
00000067 706.99401855 [6052] EvtFormatMessage failed because of insufficient memory. Retrying with correct memory-0-The operation completed successfully
00000068 706.99865723 [6052] RenderEventToBuffer failed because of insufficient memory.-122-The data area passed to a system call is too small
00000069 706.99884033 [6052] RenderEventToBuffer failed because of insufficient memory.-122-The data area passed to a system call is too small
00000070 748.03271484 [8048] SNACNP::NPGetCaps::WNNC_NET_TYPE
00000071 748.06860352 [8048] SNACNP::NPGetCaps::WNNC_USER
00000072 748.09722900 [8048] SNACNP::NPGetCaps::WNNC_CONNECTION
00000073 748.12237549 [8048] SNACNP::NPGetCaps::WNNC_ENUMERATION
00000074 748.52618408 [8048] SNACNP::NPGetCaps::WNNC_DIALOG
00000075 748.53491211 [8048] SNACNP::NPGetCaps::WNNC_START

It would be great if you could help us.
Thanks