Access Denied
From: mt (anonymous_at_discussions.microsoft.com)
Date: 02/25/04
- Previous message: Andy: "asp.net webservice & ssl"
- Next in thread: Aaron Margosis [MS]: "Re: Access Denied"
- Reply: Aaron Margosis [MS]: "Re: Access Denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 24 Feb 2004 15:11:11 -0800
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
- Previous message: Andy: "asp.net webservice & ssl"
- Next in thread: Aaron Margosis [MS]: "Re: Access Denied"
- Reply: Aaron Margosis [MS]: "Re: Access Denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|