First the bottom line ...
If you use a loop on a Novell client Win7 containing IO.File.Exist(FileTest) looking for FileTest to disappear meaning it is time to move on, delete FileTest from another client, and you then you try to use the name FileTest represents, you will get a network error. The reason I think it has to do with Novell Client Win7, is if the share is a windows share, I do not see the problem. Also, when our clients were XP SP3 (not sure the Novell version) we did not see this. As mentioned in the comment, I tried this on a SAMBA share and did not see the issue.
Next the detail ....
It is a simple to reproduce it.
Module Module1
Sub Main()
Dim FileTest As String = "\\corp01\vol1\bbs\test.flg" 'corp01 is a Novell share'
IO.File.WriteAllText(FileTest, "")
Do While IO.File.Exists(FileTest)
System.Threading.Thread.Sleep(100)
Loop
End Sub
End Module
Then from another client delete test.flg and the program ends as expected. Try running it again and when it tries to create it in the WriteAllText you will get the network error. It does not seem to matter who or how the file is created. I have tried to rem out the WriteAllText and create it from a different client, then start the program, delete it from the other client and still get the network error when trying to reference the name.
My Guess ....
I think the name is cached somehow. The only way to fix it is log off from windows. Another reason, if the WriteFileText is throwing the error and I try a different way of creating it, still have the error. For example in explorer I create a text file on the share, works ok. Then try to rename the created file to my flag name, network error. I can rename it to any other file name except for the name I use as the flag file.