Strange problem occurs on the production platform (64 bit win 2008 server).
It is connected with File.Exists and File.Delete methods…
On test platform in debug (win xp), etc it works fine. On Server 2008 for the first few times
File.Exists reported true for the file which didn’t exist …
When I Was doing further tests File.Exists finally reported false for the file which didn’t exist.
But File.Delete hadn’t thrown any error when attempting to delete the file which didn’t exists …
What is happening … ?
I read somewhere that system virtualation could mess the things up … but hasn’t found any file in: %userprofile%\AppData\Local\VirtualStore
File.Deleteon MSDN:So. it’s deliberated…. no
true\falseand no exceptions, just delete the file if it exist.Note about
File.Exist:Return Value Type: System.Boolean
MSDN