What IIS settings are required to allow file upload? I keep getting 401 error
From: Horus Alkebulan (halkebulan_at_adelphia.net)
Date: 04/29/03
- Next message: Steve K.: "Re: Content Expiration Not Working"
- Previous message: Karl Levinson [x y] mvp: "Re: IIS security settings are reset after I reboot the server"
- Next in thread: David Wang [Msft]: "Re: What IIS settings are required to allow file upload? I keep getting 401 error"
- Reply: David Wang [Msft]: "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 09:16:37 -0400
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: Steve K.: "Re: Content Expiration Not Working"
- Previous message: Karl Levinson [x y] mvp: "Re: IIS security settings are reset after I reboot the server"
- Next in thread: David Wang [Msft]: "Re: What IIS settings are required to allow file upload? I keep getting 401 error"
- Reply: David Wang [Msft]: "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
|