473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

WebClient uploadfile and XP+IIS setup giving 403 error

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.

Jul 15 '08 #1
0 1474

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David G. | last post by:
Hi, Please bear with me as I'm a newbie at this. I'm trying to install PHP on my Win XP Pro machine. I've read many web sites giving installation instructions but can't seem to get it working. Is...
0
by: John Cosmas | last post by:
I have setup an XP box to run my ASP.NET application. My objective is to run the application on the XP box and have it accessible to the local network for internal use. I've setup the Virtual...
1
by: yyy | last post by:
This problem bothers me for a long time: I use WebClient.DownloadData in order to read text from an HTML document this way: WebClient c = new WebClient(); string html=...
0
by: Sandy | last post by:
HI All, I have created a MFC exe using VC++ .NET 2003 on Windows XP Prof service pack 2 and it works properly on my machine, but when I run the same exe on a different machine (Windows XP Prof...
1
by: Brian McCullough | last post by:
Hello, I am running Windows XP (SP2 and all recent updates) on my development box. When I have Anonymous Access on my Virtual Directory, I can navigate to my "web site" fine. I setup my ASP.NET...
1
by: roshina | last post by:
Hi Iam facing a problem in my project, developing a web site for online shopping in ASP on windows XP using IIS server. All the validations are ok but the new password is not upadated in the data...
5
Atli
by: Atli | last post by:
Hi. I'm currently using Vista Ultimate on my Acer laptop just to test it, and now the 30 day activation period is almost up and I'm trying to switch back to XP. Not that I dont like Vista. I seem...
1
by: Rahul Bhate | last post by:
Hello Sir My problem is in dos giving error that javac is not recognised.Tell me the steps for debugging.I have already set the CLASSPTH through command line & also set the PATH.But still giving...
4
by: JerzeeJack | last post by:
Setup Error Windows XP After windows loads I get this message: setup error. Failed to load resources from resource file. Please check your set up. How do I check my setup to repair this?
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.