I'm attempting to write a .NET 2.0 Web Service to upload a file using a specific user ID and Password.
I need to avoid using the ASPNET machine account for security issues.
Here is my exact code snipet:
My.Computer.Network.UploadFile("C:\sample.log", "http://localhost:3477/wsFileUpload/Uploads/sample.log",
"Uploaduser", "testuser11")
I'm receiving the following WebException error:
The remote server returned an error: (401) Unauthorized
I am attempting to run this on my LOCAL PC in the development environment.
VWD 2005 Express created a \WebSite1 and I added an "Uploads" folder.
With "Uploaduser" on my PC I set it with all-access to the "Uploads" folder.
As far as web.config:
<authentication mode="Windows"/>
Nothing else exotic.
I am assuming I missed something basic?
Thanks!
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.