You are probably better off using FileSystemWatcher in conjunction with the Windows Service if you want to control the file system for changes. The Windows service is constantly running, while the code in the web application is executed only in response to an HTTP request.
This article may be a good place to start.
source share