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

Discussion in 'ASP .Net' started by Luis Esteban Valencia Muñoz, Jun 3, 2005.

  1. 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
    Luis Esteban Valencia Muñoz, Jun 3, 2005
    #1
    1. Advertising

  2. Luis Esteban Valencia Muñoz

    Scott Allen Guest

    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.

    --
    Scott
    http://www.OdeToCode.com/blogs/scott/

    On Fri, 3 Jun 2005 09:32:31 -0500, "Luis Esteban Valencia Muñoz"
    <> wrote:

    >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
    >
    Scott Allen, Jun 3, 2005
    #2
    1. Advertising

  3. 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?
    "Scott Allen" <> escribió en el mensaje
    news:...
    > 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.
    >
    > --
    > Scott
    > http://www.OdeToCode.com/blogs/scott/
    >
    > On Fri, 3 Jun 2005 09:32:31 -0500, "Luis Esteban Valencia Muñoz"
    > <> wrote:
    >
    > >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
    > >

    >
    Luis Esteban Valencia Muñoz, Jun 3, 2005
    #3
  4. Luis Esteban Valencia Muñoz

    Scott Allen Guest

    On Fri, 3 Jun 2005 13:25:12 -0500, "Luis Esteban Valencia Muñoz"
    <> wrote:

    >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.

    --
    Scott
    http://www.OdeToCode.com/blogs/scott/
    Scott Allen, Jun 4, 2005
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U3JpZGhhcg==?=

    reading file in a network folder

    =?Utf-8?B?U3JpZGhhcg==?=, Dec 13, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    389
    =?Utf-8?B?U3JpZGhhcg==?=
    Dec 13, 2005
  2. Harry Barker
    Replies:
    2
    Views:
    507
    Alf P. Steinbach
    Apr 19, 2006
  3. George Ter-Saakov

    Any way to exclude folder from watching by ASP.NET

    George Ter-Saakov, Apr 25, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    340
    George Ter-Saakov
    Apr 25, 2008
  4. George Ter-Saakov

    Any way to exclude folder from watching by ASP.NET

    George Ter-Saakov, Apr 25, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    672
    George Ter-Saakov
    Apr 28, 2008
  5. crea
    Replies:
    2
    Views:
    399
    Nobody
    Dec 28, 2012
Loading...

Share This Page