Not sure where to post this but simply I want to upload a file using the
WebClient, ie:
Try
Dim wc As New WebClient
wc.Credentials = New System.Net.Netw orkCredential(" someuser",
"somepass")
wc.UploadFile(" http://localhost/public/", "PUT", "c:\test.tx t")
Catch ex As Exception
Console.WriteLi ne(ex.Message)
Console.ReadKey ()
End Try
It always returns : The remote server returned an error: (403) Forbidden.
I have permissions set on public for read/write, I have web shared the
folder. Im guessing its how I have IIS setup. Using XP Pro sp3 and IIS.
WebClient, ie:
Try
Dim wc As New WebClient
wc.Credentials = New System.Net.Netw orkCredential(" someuser",
"somepass")
wc.UploadFile(" http://localhost/public/", "PUT", "c:\test.tx t")
Catch ex As Exception
Console.WriteLi ne(ex.Message)
Console.ReadKey ()
End Try
It always returns : The remote server returned an error: (403) Forbidden.
I have permissions set on public for read/write, I have web shared the
folder. Im guessing its how I have IIS setup. Using XP Pro sp3 and IIS.
Comment