ume05rw / EzSmb

SMB(Windows shared folder) Clinet Library powered by TalAloni's SmbLibrary, Xamarin & .NET Core Ready.
GNU Lesser General Public License v3.0
52 stars 20 forks source link

Xamarin forms Node.GetNode always null #19

Open KevinDeery opened 2 years ago

KevinDeery commented 2 years ago

Hi,

When i execute var ipStrings = await Node.GetServers(); i can see my NAS Drive

When i running any of the following i always get null.

 // Normally.
                var server1 = await Node.GetNode("192.168.1.25", "testuser", "password1");

                // Connect by Anonymous User.
                var server2 = await Node.GetNode("192.168.1.25");

                // Connect with specified SMB version.
                var server3 = await Node.GetNode("192.168.1.25", new ParamSet()
                {
                    UserName = "testuser",
                    Password = "password1",
                    SmbType = SmbType.Smb1
                });

                // Connect by Windows-Domain Authentication. ** Not Supported SMB1 **
                var server4 = await Node.GetNode("192.168.0.1", new ParamSet()
                {
                    UserName = "testuser",
                    Password = "password1",
                    DomainName = "domainname.local"
                });

Running on a Google Pixel Pro 6 with the latest version of Xamarin Forms

No sure if this library actually works

If i run SharpCifs library (smb1 only) i can connect fine with the same details

Any ideas?

SarthakB26 commented 1 year ago

@KevinDeery were you able to resolve or find any alternative for this issue. I may be having the same issue on MAUI

bsdRuf commented 1 month ago

I had same issue on MAUI too

In Xamarin (which I converted from to Maui) I could get the Node/Folder in the Service which isnt possible in Maui but you can hand over the Node to the Service as param.

Hope this helps someone