Re: Intermittent Incorrect Result on System.IO.Directory.Exists
Brady Kelly <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.advanced |
|---|---|
| Message-ID | <[email protected]> |
> For something like this, I think security permissions has to be the > first suspicion. If it was me I'd probably change the code to start > logging the results when you try to access this directory, and at the > same time log the identity that .NET thinks the request is being made > from, to see if there's a pattern. I might also try accessing another > directory (eg. the web root directory - surely you must have access to > that :), or to a dummy directory to which Everyone has read access ) to > see if the problem is directory-specific. (Actually, if you're going to > log to a text file, you probably need a folder/file to which Everyone > has write access anyway, so that you can successfully write the fail > logs to it :-) ) Yeah, I think I'll add some tracing code so I can see what was different when a failure occurred. >If you are doing any multithreading, that may be important. I actually have no idea - it's not my code. It's the open source bug tracking app called BugTracker.NET. The developer has never had this problem reported before. =================================== View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives