Re: ASP.NET Application and FileSystemWatcher



I forgot to say that directory which I monitor is a shared folder on the
netwrok.

Thanks
"Eliyahu Goldin" <removemeegoldin@xxxxxxxxxxxxxx> wrote in message
news:udEvR5xWFHA.3188@xxxxxxxxxxxxxxxxxxxxxxx
> Are you sure you are on the right track? A FileSystemWatcher object has to
> exist somewhere to be able to watch. An asp.net application doesn't exist
> anywhere but between a client http request and the server response. A very
> short time. Do you expect the watcher to catch something only when the
> server is busy serving client requests?
>
> Eliyahu
>
>
> "J-T" <RayAll@xxxxxxxxxxxx> wrote in message
> news:%23QPGMNxWFHA.3540@xxxxxxxxxxxxxxxxxxxxxxx
>> We are working on an asp.net application which is a 3-tier application.I
> was
>> aksed to create a component which monitors a folder and gets the file and
>> pass them to a class library in our business logic layer(so far so good
> and
>> easy).I initialize my class which is using a FileSystemWatcher in my
>> Global.asax and everything works fine.I have found FileSystemWatcher
> class
>> not very reliable and sometimes it behavies unexpectedly.I'm afriad that
> it
>> brings down the whole application.Is there a better way of doing this
>> **Inside Asp.Net application**.I can't use antother application like
> windows
>> service or schedault taks.Everything needs to be done is ASP.NET
>> application.
>>
>>
>> Thanks a lot
>>
>>
>
>


.



Relevant Pages

  • Re: FileSystemWatcher onCreated tell where it was created from?
    ... What do u need is to monitor harddrivers for changes, ... B> acceptable) this the FileSystemWatcher does not do (straightforwardly ... public static void Main ... RenamedEventArgs e) ...
    (microsoft.public.dotnet.framework)
  • RE: File System Monitor Question
    ... to create another FileSystemWatcher for the other directory. ... >Subject: File System Monitor Question ... >public class DirectoryMonitorConsole ... >private static void OnChanged ...
    (microsoft.public.dotnet.languages.csharp)
  • Multiple Files Problem with FileSystemWatcher
    ... Process 1 is a Windows service which uses FileSystemWatcher to monitor a ... If multiple files are copied then things go out of sync. ... FileSystemWatcher process) because it still wouldn’t have completed. ... Process 1 would know for certain that a file has completed copying other than ...
    (microsoft.public.dotnet.languages.csharp)
  • Convert Console App To Windows Service Question
    ... How would I convert the following console app to a windows service?? ... public class DirectoryMonitorConsole ... /// Used as a test application for the Directory Monitor Service ... FileSystemWatcher watcher = new FileSystemWatcher; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Watcher component
    ... If you need to monitor all files that are processed by difference users, ... >>> page or a component or whatever it is which watches a shared folder on ...
    (microsoft.public.dotnet.framework.aspnet)