Re: Odd "Access to the path is denied" exception being thrown

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Derrick,

I made additional tests and I'm gonna put here the facts of the situation.
Perhaps you can give me some orientation on what is the problem and/or what
to do based on these details.

1. I renamed the extension of the "info.asp" file to "info.aaa". The file
was moved with no problem. Also, I renamed another file and put it as an ASP
file and the routine raised the same exception. So based on this, we know
the problem occurs with any ASP files, not particularly with the info.asp.

2. All other files are moved without any problem.

3. The problem occurs on any folder (acting as source folder), even though
that folder is not configured as a virtual directory in IIS.

4. ASPNET user has all permissions on both folders.

What do you suggest? I think it has to be something with the fact that it
is a ASP file, not necessarily permissions on the folder, so I believe this
can be solved looking into the configuration in IIS or any other place in
Windows (remember this was working 2 months ago, so may be some configuration
was changed without my knowledge).

What do you think?

Thanks.

--
Carlitos


"Carlitos" wrote:

> Hello Derrick,
>
> Thanks for the response. Yesterday I made a test. Instead of uploading the
> zip and unzipping it into a subfolder of the Web Application, I made the same
> process into a folder outside the Web Application folder (c:\upload), but got
> the same error "Access...denied". I'm gonna try to look using the tool you
> suggested and let you know what's the outcome.
>
> Many thanks.
>
> --
> Carlitos
>
>
> "Derrick Coetzee [MSFT]" wrote:
>
> > 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
> >
.



Relevant Pages

  • RE: SBS FAX
    ... trying to save to the incoming faxes folder on SharePoint. ... The Fax Service failed to execute a specific routing method. ... will retry to route the fax according to the retries configuration. ...
    (microsoft.public.windows.server.sbs)
  • Re: Proper place for custom CONFIG file
    ... Regarding a place to store the settings, I am now convinced that I should ... The folder <Common Files> contains various ... properties that will return respective parts of common configuration file. ...
    (microsoft.public.dotnet.framework)
  • Re: Any risks if I update my ASP.NET 2.0 application to 3.5?
    ... What I want to emphasize is that Subfolder B is not a Virtual Directory or an Application in IIS. ... Still I know that some configuration cannot be place in web.config in a sub folder. ... ASP.NET Ajax client-side framework failed to load. ... Only one element allowed per config file and if present must be the first child of the root <configuration> element. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Any risks if I update my ASP.NET 2.0 application to 3.5?
    ... What I want to emphasize is that Subfolder B is not a Virtual Directory or an Application in IIS. ... Still I know that some configuration cannot be place in web.config in a sub folder. ... ASP.NET Ajax client-side framework failed to load. ... Only one element allowed per config file and if present must be the first child of the root <configuration> element. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Configuration Error : Web.Config [No Relevant Source Line]
    ... it didn't inherit the wwwroot default security settings. ... configuration file required to service this request. ... I Copy the "integrate" folder, the folder where my code is, and ... web admin tool to configure settings for your application. ...
    (microsoft.public.dotnet.framework.aspnet)