I have applications on servers "A" and "B" (both have Windows Server 2012). Application on "A" creates folder locally. Just after that creation application on "B" checks if folder exists by remote path on server "A". Application on "B" gets false for ~1.5 seconds. After that it begins to get true:
...
//directory.Exists = false
LogInfo(String.Format("Timestamp: {0}", DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss.fff", CultureInfo.InvariantCulture)));
//2016-05-16 13:15:37.281
while (!directory.Exists)
{
directory.Refresh();
}
//directory.Exists = true
LogInfo(String.Format("Timestamp: {0}", DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss.fff", CultureInfo.InvariantCulture)));
//2016-05-16 13:15:38.546
Parent folder for created folder is shared for user, that is used to run application "A".
Is that a problem with giving permissions for just created folder or some another problem?
Is there any workaround? Because i need to know on application "B" if folder was created and loop while is not a solution.