I’m trying to mount shares from a NAS using the NetFSMountMBS class. Whatever I try, I get errors.
Currently, this is my code:
Var MountPoints() as string Var Result as integer=app.NFSM.MountURLSync("smb://192.168.1.117","Movies",UserName,Password,app.OpenOptions,app.MountOptions,MountPoints)
(app.NFSM being a property of type NetFSMountMBS)
The dictionaries are built as follow:
MountOptions=new Dictionary MountOptions.Value(NetFSMountMBS.kNetFSAllowSubMountsKey)=true OpenOptions=new Dictionary OpenOptions.Value(NetFSMountMBS.kNAUIOptionKey)=NetFSMountMBS.kNAUIOptionNoUI
Result always equals -6003 and MountPoints is nil.
-6003, from the MBS documentation is “No shared available.”. Is that intended to be “No shares available”?
With “smb://192.168.1.117.local”, it’s worse, as the server can’t even be found, and it doesn’t work without “smb://” either.
I get the same behaviours using the example project.
I can’t find the requested format.
Can anyone help me?