SMBfile.listfiles() gives up "The network name cannot be found." - smb

Creating a java standalone application for copying files from one share drive to another share drive using JCIFS. Prior to copy I should place a NTLM authentication. I get the error as "The network name cannot be found" while listing files using SMBfile.listfiles()
sourceAuth = new NtlmPasswordAuthentication(sourceUsername+":"+sourcePassword);
currentFolder = new SmbFile(dirToList, sourceAuth);
listofFiles = currentFolder.listFiles();
Consider the network path is \Myserver\Share\FileName.Ext, I could properly access it in windows explorer.
But in code, the SMB URL smb://Myserver/Share/FileName.Ext results in "The network name cannot be found"
If i'm trying to use IPC$ in between - smb://Myserver/IPC$/Share/FileName.Ext resulting me in "Invalid operation for IPC service".

Related

Cannot add additional server from the Server Explorer

Can some of you can help me with this.
What I have to do:
I have to publish my code from my local machine to the server. I found that I have to add the current server in the Server Explorer(to be able to create a Publish profile "method File System" and in the xml file to show the path of where to publish my code on the server).
But I cannot add this server on my Server Explorer.
What I tried:
1.Remote debugging - not working
2.stop the firewall - not working
3.Tried with the Name of the Server and the IP
The error that I receive is :
Could not reconnect to "Static". Make Sure that the machine name and path are valid.
I will be really happy if somebody can help me!

Opening network file from excel vba code on MAC uses offline file

I have excel with macros run in Mac OS.
One of the macros uses Workbooks.Open to open a file in network folder (a SharePoint site).
It works fine if there is connection into the network.
Also it works fine if the user of the Mac profile runs the macro for the first time with the network connection on or off. If there is no connection Mac returns error like it should when run first time.
However the problem is that after the user has succesfully used the file (macro) with the connection on once then Workbooks.Open does not return any error when running the macro second time and the network connection is down.
I added exit sub command right after the Open method and could see that there is same network file open on excel with status of 'Offline file'. That file was the same as the one previously opened when using the macro with network open for the first time. However the file was not fetched from the network drive as this time there is no connection to network.
Tried to find the file from Mac file system, without success.
What creates the offline copy and where is it stored?
How to delete the offline file via vba code or how to prevent excel (or Mac) from creating it ever again?
Br,
MikkoT
You should disable oplocks in the SMB protocol.
Oplocks are opportunistic locks, a client-side performance enhancement
that requires cooperation between a Windows client and the SMB
service. If SMB service supports oplocks, the client can request to
cache a file locally, in order to perform read and write operations on
the cached file rather than directly on the server. This saves network
bandwidth and increases performance for the SMB client. If another SMB
client requests access to the file, the SMB service notifies the
holder of the oplock, and that client should write changes from its
cache back to the SMB service. The SMB service does not let another
client have access to the file until the first client has finished
writing.

error "The search application on server did not finish loading"

hi I had my SharePoint project and when I tried to drag and drop
folders to Upload Multi files it doesn't dragged and no files uploaded
. when I checked the log file I had this message :
Application Server Administration job failed for service instance
Microsoft.Office.Server.Search.Administration.SearchServiceInstance.
Reason: The search application on server did not finish loading. View
the event logs on the affected server for more information.
Perhaps this will help:
http://support.microsoft.com/kb/2770732
"This is caused by insufficient permissions for the search service account on the SharePoint Server. Verify that no group policies have been set on the local user groups 'WSS_WPG' and 'WSS_ADMIN_WPG'"
I had this issue when changing the Search DB names and trying to bring the Search service out of suspended state.
Resolution: Ensure that your Search Server Service and your Search Host Controller Service are using the same service account
(Found in "Security > Configure Service Accounts")

Error: Requested action not taken. file name not allowed

I am using UltraEdit for FTP. While saving my files to other server using FTP I am getting above error as ;'Error: Requested action not taken. file name not allowed'.
Could anyone know the possible cause and solution for it.
Thanks in advance
Well, the FTP server returns error code 40553 - Requested action not taken. File name not allowed.
The reason is most likely a bad character in file name, or a too long file name, or there is a file already on the server with same name and you do not have the permissions to overwrite this file.
You could also have made a mistake in the FTP account configuration like a typing mistake in initial directory.
Do you have downloaded the file from the FTP server before you tried uploading it?
Please note that Unix file systems most often used on FTP servers are case-sensitive and therefore a file with name "MyFile.txt" is a different file than "myfile.txt".
Finally, very often a firewall blocks data transfer in a separate data channel established from FTP server to FTP client module in UltraEdit. In this case the option Passive transfers (for firewalls) should be enabled on the Server tab of this FTP account in the FTP Account Manager window.

Filezilla FTP server - set upload location on file server

I'm setting up a FTPS server and want to upload files to File server(NAS drive). I mapped the drive and tried 'drive letter' and '\serverpath\', But during the transfer its shows failed transfer error. File transfer works for local disks.
Has anyone came accross with the issue to upload files on file server(NAS drive) using FTPS? Please let me know.
Thanks!
I found the solution.
Windows 'System' account can't access network shared drive, So i had to run filezilla server service under network user and then it worked.

Resources