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


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.


Relevant Pages

  • Re: VBScript runtime error: 800A0046 Permission denied: GetObject
    ... Can you get it to echo the strDomain, strUserName values? ... Dim SMSNetwork ... "Domain Admins") Then MapLDrive = FALSE ... Directory I need to go to re-establish permission. ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADSI Problem
    ... I suggest posting to IIS groups as well because if IIS will cause it to ... causing the script to stop working after it has been working. ... I have written a script to authenticate Active Directory users via ADSI ... Dim strUserName ...
    (microsoft.public.windows.server.active_directory)
  • Re: streaming binary data from sql 2005
    ... seems there hasn't detailed public reference. ... I'll contact some other IIS ... developing raw ISAPI extension or filters, ... |> | Dim cmdUploadBinary As New SqlCommand ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: security/strong name/zones clarification needed
    ... Dim zz As New System.Security.PermissionSet ... >> When assemblies are ... >>>needs to host the CLR, it creates an AppDomain, but due ... >>>will recieve the permission grant you expect (in this ...
    (microsoft.public.dotnet.security)
  • Re: Read Exchange calendar with a VB script
    ... I thought it might be a permission ... Is there any other way to access the mailboxes ... > Dim objSession As MAPI.Session ... > Dim objMessages As MAPI.Messages ...
    (microsoft.public.win32.programmer.messaging)