Re: FileSystemWatcher invalid directory name




Yes, we use FileSystemWatcher in an asp.net app using impersonation.
We impersonate the authorized user when setting up the watcher and
then again when the event is raised ('cause event is raised on a
different thread).

It works fine when the unc is correct and setup. When we install our
app in an environment where the unc share is not setup properly, we
get no error, just no events.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Thu, 14 Jun 2007 19:11:01 -0700, stahlerw
<stahlerw@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I am running it on my machine under a domain account that has access.
I have also noticed that I get the error the first time I create a new
document in the directory, subsequent attempts don't trigger or raise an
error.

So just to verify, you have seen it work with UNC path?

.



Relevant Pages

  • Re: FileSystemWatcher invalid directory name
    ... in a relaxed team environment. ... I will investigate the impersonation route. ... we use FileSystemWatcher in an asp.net app using impersonation. ... It works fine when the unc is correct and setup. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Persisting a Network share drive to a letter
    ... able to read/write to the UNC name from within their .NET apps. ... I own one Unix based app that is reading from a network mount (the mount ... Drive letters require a constant connection to maintain the mapping which ...
    (microsoft.public.windows.server.networking)
  • Re: Persisting a Network share drive to a letter
    ... able to read/write to the UNC name from within their .NET apps. ... I own one Unix based app that is reading from a network mount (the mount ... Drive letters require a constant connection to maintain the mapping ...
    (microsoft.public.windows.server.networking)
  • Re: Persisting a Network share drive to a letter
    ... I own one Unix based app that is reading from a network mount (the mount is ... That was a pretty powerful wakeup call to use UNC names instead. ... Drive letters require a constant connection to maintain the mapping which ...
    (microsoft.public.windows.server.networking)
  • Re: Impersonation not working with WebClient...
    ... I got almost same situation: my asp.net app uses <identity ... download manager I ... when I deployed this to a test server and ran it from ... > Then I thought maybe the impersonation wasn't working, ...
    (microsoft.public.dotnet.framework.aspnet.security)

Quantcast