Re: Access Denied
From: Aaron Margosis [MS] (aaron.margosis.ms_at_online.microsoft.com)
Date: 02/27/04
- Next message: Aaron Margosis [MS]: "Re: Access denied"
- Previous message: Brian Webb: "Re: web.config ignored"
- In reply to: mt: "Access Denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 27 Feb 2004 02:11:19 -0500
If "e$" is an administrative share of your E: drive (like c$ is for your C:
drive), then only administrators can access it. Likewise, stuff under
system32 is generally not writable by non-administrative accounts.
HTH
-- Aaron
"mt" <anonymous@discussions.microsoft.com> wrote in message
news:5CFBBD1D-472A-4930-AD16-A1C6FB7C6DBE@microsoft.com...
> Hello,
>
> Here is my setup:
> IIS 6 on a Server 2003 machine
> .NET framework 1.1
>
> I'm trying to copy files from clients to my 2003 server using a
HtmlInputFile control.
>
> The code:
> Try
> 'upload the file from the client to the server folder
>
UploadFileInput.PostedFile.SaveAs("\\servername\e$\folder\file.txt")
> Catch ex As Exception
> 'error handling stuff
> End Try
>
> IIS 6 is configured to NOT ALLOW anonymous access. It is set to use
windows authentication. The web.config file is set to use impersonation.
Authenticated users and the server's ASPNET account have full control over
the folder in which I'm trying to dump the files.
>
> When the attempt is made to shove the file into the target folder, I get
an "Access to the path "\\servername\e$\folder\file.txt" is denied." error.
The mscorlib.dll is the source of the error for whatever that is worth.
>
> I can get a step further into the process if I share the folder Then I get
this error:
> Access to the path "c:\windows\system32\inetsrv\file.txt" is denied
> I really rather use the first method and skip sharing.
>
> Any ideas? I'm sure it is something obvious.
>
> Regards,
> mt
>
- Next message: Aaron Margosis [MS]: "Re: Access denied"
- Previous message: Brian Webb: "Re: web.config ignored"
- In reply to: mt: "Access Denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|