I have a Windows Service AND a Website which perform the same action. To copy a file to a network share on a server on another continent.
The Windows Service does an automated action but when there is an error the user can manually initiate the same action from the website.
Both the windows service and website intermittantly return false on a directory.exist using a unc path.
If I recycle the app pool it works. If I restart the web service it works.
I have a domain user account as identity for both the windows service and app pool.
Maybe this is a network permission issue or server timeout?
For now we added some retry logic but I would really like to understand what is happening.
Any ideas?