![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
vb.net webclient upload file and IIS configuration on XP
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.NetworkCredential("someuser", "somepass") wc.UploadFile("http://localhost/public/", "PUT", "c:\test.txt") Catch ex As Exception Console.WriteLine(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. |
|
|||
|
Re: vb.net webclient upload file and IIS configuration on XP
Not here.
dot net? we don't plat that. ![]() "Mitch" <mhmooney@no.bother.to.spam> wrote in message news 0Rek.233$gH4.139@trnddc05...> 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.NetworkCredential("someuser", > "somepass") > wc.UploadFile("http://localhost/public/", "PUT", "c:\test.txt") > Catch ex As Exception > Console.WriteLine(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. > |
|
|||
|
Re: vb.net webclient upload file and IIS configuration on XP
Mitch wrote:
> 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.NetworkCredential("someuser", > "somepass") > wc.UploadFile("http://localhost/public/", "PUT", "c:\test.txt") > Catch ex As Exception > Console.WriteLine(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. > > Yes, I think it is an IIS problem. Try giving the ASPNET user modify permissions on the folder. |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|