Re: Odd "Access to the path is denied" exception being thrown
- From: "Derrick Coetzee [MSFT]" <dcoetzee@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Jun 2005 01:46:24 -0400
Carlitos wrote:
> In a test I am doing, there is a zip file with +200 files in it. The
> routine that moves the unzipped files works just fine until it reaches the
> 108th file. It throws a "Access to the path is denied" exception when it
> tries the MoveTo method on that file.
>
> [ . . . ]
>
> The file that the routine tries to move and fails is a ASP file
> ("info.asp"). Does that got anything to do with the problem? If it does,
> then how come this was working 2 months ago, and now it is not? Is it
> perhaps some sort of configuration that had been changed without me knowing
> it?
>From a cursory inspection, your routine looks fine. From the name of the
ASP file, my guess is that the file is in use by another process. Try and
use Sysinternal's Filemon to get a better impression of who's messing with
these files just prior to the error:
http://www.sysinternals.com/Utilities/Filemon.html
Please write back if you're still having trouble tracking this down. Good luck.
--
Derrick Coetzee, MCP, MSFT (Speech Server)
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included code samples are subject to the terms
specified at http://www.microsoft.com/info/cpyright.htm
.
- Follow-Ups:
- References:
- Odd "Access to the path is denied" exception being thrown
- From: Carlitos
- Odd "Access to the path is denied" exception being thrown
- Prev by Date: Re: Create delegate from MethodInfo
- Next by Date: RE: Windows User and Domain names
- Previous by thread: Odd "Access to the path is denied" exception being thrown
- Next by thread: Re: Odd "Access to the path is denied" exception being thrown
- Index(es):
Relevant Pages
|