Re: What IIS settings are required to allow file upload? I keep getting 401 error
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 04/30/03
- Next message: Ann: "Connecting to SQL through ASP"
- Previous message: David Wang [Msft]: "Re: Sharing/Forwarding website credentials programatically"
- In reply to: Horus Alkebulan: "What IIS settings are required to allow file upload? I keep getting 401 error"
- Next in thread: Horus Alkebulan: "Re: What IIS settings are required to allow file upload? I keep getting 401 error"
- Reply: Horus Alkebulan: "Re: What IIS settings are required to allow file upload? I keep getting 401 error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 29 Apr 2003 21:07:03 -0700
You are doing a HTTP PUT. So, the Write Permission in IIS must be allowed,
and you need to make sure the user credentials making the PUT request has
Modify/Write NT ACLs on the physical directory that you are writing to.
-- //David This posting is provided "AS IS" with no warranties, and confers no rights. // "Horus Alkebulan" <halkebulan@adelphia.net> wrote in message news:Op%23gRGlDDHA.2384@TK2MSFTNGP12.phx.gbl... How do I set directory and file permissions to allow file upload? I have a web service that accepts a byte stream from a .NET windows client and everytime the UploadFile method I get 401 Unauthorized error from IIS 5.1. Running on development platform where all on XP Pro, no domain controller. When I call this code from my windows forms client --- snip --- Dim uriString As String = "http://localhost/IDSM_WebService/uploads/wireless1.doc" ' Create a new WebClient instance. Dim myWebClient As New System.Net.WebClient() Dim fileName As String = "c:\wireless1.doc" ' Upload the file to the Url using the HTTP 1.0 POST. Dim responseArray As Byte() = myWebClient.UploadFile(uriString, "PUT", fileName) ' Decode and display the response. str = "Response Received.The contents of the file uploaded are: " & System.Text.Encoding.ASCII.GetString(responseArray) --- snip --- I get this error. Any ideas? An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The remote server returned an error: (401) Unauthorized.
- Next message: Ann: "Connecting to SQL through ASP"
- Previous message: David Wang [Msft]: "Re: Sharing/Forwarding website credentials programatically"
- In reply to: Horus Alkebulan: "What IIS settings are required to allow file upload? I keep getting 401 error"
- Next in thread: Horus Alkebulan: "Re: What IIS settings are required to allow file upload? I keep getting 401 error"
- Reply: Horus Alkebulan: "Re: What IIS settings are required to allow file upload? I keep getting 401 error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|