Access Denied

From: mt (anonymous_at_discussions.microsoft.com)
Date: 02/25/04

  • Next message: John Stemper: "Re: Security Exception on ASP.Net app"
    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


  • Next message: John Stemper: "Re: Security Exception on ASP.Net app"

    Relevant Pages

    • Re: IIS 6.0 FTP
      ... if your ftp is working first. ... So, go to the remote machine (which allow to connect to your iis server), go ... The ftp server connection msgs you posted, doesn't look like IIS FTP to me. ... clients are using an order entry program created in Microsoft access. ...
      (microsoft.public.inetserver.iis.ftp)
    • Re: IIS 6.0 FTP
      ... if your ftp is working first. ... So, go to the remote machine (which allow to connect to your iis server), go ... The ftp server connection msgs you posted, doesn't look like IIS FTP to me. ... clients are using an order entry program created in Microsoft access. ...
      (microsoft.public.inetserver.iis.ftp)
    • Re: IIS 6.0 FTP
      ... does not look like the behavior of an IIS FTP server. ... By default, IIS FTP ... using the clients username and password, ...
      (microsoft.public.inetserver.iis.ftp)
    • Use or Not to use ISA
      ... I am looking for advice on the best way to protect my web server. ... I currently sit behind a Symantec Gateway 360 security appliance firewall ... Win2k3 with IIS installed. ... small number of clients as well as my own. ...
      (microsoft.public.isa)
    • Re: 2008 TS Gets "Access Denied" When Printing to Redirected Printer
      ... The clients need not just .NET Framework 3.0, ... MCSE, CCEA, Microsoft MVP - Terminal Server ... The clients can connect to the server and run their app -- they ... Easy print driver is, indeed, the one Windows will try and use. ...
      (microsoft.public.windows.terminal_services)