SMBLibrary
SMBLibrary copied to clipboard
SmbService.Smb2GetFileList returns null at 3rd attempt
Hi, I'm at a roadstop, can anyone help on why TreeConnect returns an ErrorResponse when following line is called 3 times:
(MainPageViewModel.cs : 263)
fileList = smbService.Smb2GetFileList(MySmbInfo);
It seems that in SmbService.cs:171 the TreeConnect is returning null and the status is "-1073741616"
var share = client.TreeConnect(pathArr[1], out status) as SMB2FileStore;
Thank you for your help!
To reproduce:
- In the UI click the green bar under File:
- Select Cancel at the pop up:
- Repeat steps 2 times will return empty list