Re: Intermittent Incorrect Result on System.IO.Directory.Exists

Brady Kelly <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
Peter: 
> Is the intermittentness dependant on the user using the system?  If
> there's any sort of impersonation going on there the user context
> calling Exists may not have rights to the directory in question.
> Viewing that directory in Explorer would be with a different user
> context an explain why it "clearly exists", yet Exists() returns false
> in the web app.

It returns false intermittently in the web app with no observably changed
variables.  The number of browsers open seems to have an effect, but it is
not identifiable as a fixed set of conditions.  I logged on once, and it was
working.  Within the same session, it suddenly stopped working.  Then I
opened a new session, and it didn't work at all.  Then, I opened a debug
session on IIS from VS, and it worked.  Then I opened a new browser session,
and that worked, and then starting another debugging session in VS gave the
error.  I changed nothing except opening and closing sessions.

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.