Anand,
Are you talking about Active/Active or Active/Passive balancing? Are you
using Windows clustering?
You don't want it to run on two servers at the same time, on the same
directory. I would have it only run on one instance at a time (like
Active/Passive mode).
BTW, make sure the files are finished being written before performing any
operation. The easiest way to do this is to attempt to open the file using
write access:
Try
Using fs As New IO.FileStream(" <file name>", IO.FileMode.Ope n,
IO.FileAccess.W rite)
fs.Close()
End Using
Catch ex As Exception
' do something
End Try
Hope this helps,
Steve
"anand kumar" <an***@biztalks olutions.comwro te in message
news:27******** *************** ***********@mic rosoft.com...
Hi,
We have a requirement where windows service application XX will be
deployed
on two servers that is load balanced. The windows service polls the file
directory and performs some logic when the file is being copied to the UNC
path. The window service uses FileSystemWatch er to perform file
operations.
How does it work when the window service on two servers is pointing to
same
file location.
Are there any articles or can somebody please point me in the right
direction.
Thanks
Anand