I’ve got a windows based application (not one I have control over) that will push an xml file to an ftp server. I would like to have that file automatically processed by my asp.net application without having to poll the ftp server. From within the windows application I can control the ftp server that it is being sent to, so I could setup an ftp server on my iis box, but then i would still have to poll for a change in the file. I am open to any suggestions on accomplishing this without having to poll an ftp server.
Share
The FileSystemWatcher class is designed to monitor a directory and respond to events such as the creation of a file.
I’d suggest creating a Windows Service application to host the FileSystemWatcher and handle the OnCreated event.
FileSystemWatcher:
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher%28v=vs.100%29.aspx
OnCreated event:
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.oncreated%28v=vs.100%29.aspx