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

John Warner <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Organization John Warner
Message-ID <016f01c92a49$1dc8ae00$3d02a8c0@Pluto>
Is this intranet or Internet?

John Warner




> -----Original Message-----
> From: Discussion of advanced .NET topics. 
> [mailto:[email protected]] On Behalf Of Brady Kelly
> Sent: Thursday, October 09, 2008 3:50 PM
> To: [email protected]
> Subject: Re: [ADVANCED-DOTNET] Intermittent Incorrect Result 
> on System.IO.Directory.Exists
> 
> 
> 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
> 

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