An Automated process of watching a network file folder, reading a file in it and deleting the file

  • Thread starter Luis Esteban Valencia Muñoz
  • Start date
L

Luis Esteban Valencia Muñoz

Hi everyone,
I created a VB.NET application that looks at a folder
in my local system from which I can read the file, enter data into the
database and delete the file. I am using the filewatcher class.. However I
need to do the same with ASP.NET. I want this application to be running all
the time and I want the changes to be reflected on the ASP.NET page i.e the
graphs on the ASP.NET page reflect the data that is being entered in the
database from the files.

thank you
 
S

Scott Allen

Hi Luis:

You can apply the same technique you currently use with the
FileSystemWatcher. What you'll have to do is have the web forms poll
from the client, perhaps by using a META tag to refresh every X
seconds.
 
L

Luis Esteban Valencia Muñoz

it wont work if there are no clients...

plus the aspnet worker process gets recycled and what would happen to the
automated process then?? You really need to use a Windows Service... or not?
 
S

Scott Allen

it wont work if there are no clients...

If you are configured to shutdown an idle process, yes that's true.
plus the aspnet worker process gets recycled and what would happen to the
automated process then?? You really need to use a Windows Service... or not?

A service would always be running, but your clients will still need to
poll the web application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top