"Adrian Jones" <(E-Mail Removed)> wrote in message
news:FF22E277-54AE-4477-983A-(E-Mail Removed)...
> I need to regularly check an FTP folder for the presence of a file, and if
> found, run a routine.
>
> Given that this is all on our ISP's servers, what is the best way to
> automate such a routine in ASP.NET?
Well, any time you need to check for something on a regular basis and carry
out some processing based on the results of that check without user
intervention, a Windows service is almost always the right solution.
However, I'm assuming from the fact that you mention your ISP's servers,
that you're not able to deploy a Windows service on them...?
The "problem" with ASP.NET of course, in this particular instance, is that
your web app will stop when the last session terminates... This makes it
difficult to guarantee that your process will run 24/7. There are ways and
means to get round this, but these are hacks at best...
You mention that this regular check involves FTP - therefore, does it
actually need to be done through ASP.NET at all...? If you can access the
FTP site from outside your ASP.NET app, wouldn't it be easier to write a
Windows service and deploy it on another machine...?
> The end target of the routine is likely to be a MySQL database. If we were
> using SQL Server, I assume I could use DTS to trigger the process, but I'm
> fairly ignorant of MySQL.
If your ISP supports MySQL v5.1.6 or later, you can simply create an event:
http://dev.mysql.com/tech-resources/...t-feature.html