Disabling the SMB system cache
With the advent of SMB v2/v3 protocols, and the discontinuation of SMB v1 by default (e.g. in Windows Server 2019 versions), it is necessary to adjust the file server settings so that the system cache of shared directories is not enabled.
The program may then manifest error messages such as "Access violation", "Cannot open table", etc.
To do this, you need to add 3 registry keys on the file server and all client computers:
Registry key directory: HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\
"FileInfoCacheLifetime"=dword:00000000
"FileNotFoundCacheLifetime"=dword:00000000
"DirectoryCacheLifetime"=dword:00000000
If the keys do not exist, they must be created.
A restart of the server is necessary!
Increase of the SMB session timeout
It also happens, on networks with high latency, that the default SMB Session Timeout setting of one minute is not sufficient.
You should increase this value to, for example, 10 minutes (600 seconds), to avoid frequent connection losses.
Registry key directory: HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\
"SessTimeout"=dword:00000258
If the keys do not exist, they must be created on the file server and all client stations.
A restart of the server is necessary!
You can download a REG file (renamed to TXT) as an attachment to this article.