webClient.UploadFile Problems with uploading local file

This line.... :  
webClient.UploadFile("ftp://myserver.com/" + "test.txt", "c:\test.txt")
....works fine when the app is running on my local PC. The file "test.txt" sits on the c-drive on my local PC and all is fine...   BUT when moving the app to the server, and access the page through internet, the same line looks for test.txt on the local c-drive of the server...

I need to load the file from the webclient... And this is what I thought it did, until I moved it to the server....  

Please Help!

dmveAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vb_jonasCommented:
Hi!

The page must be able to access the local file someway, if you run it on the server, use the FileUpload control on a asp.net-page.
0
vb_jonasCommented:
Here's an article describing FileUpload. If you need the path on the server, use Server.Mappath("/myuploadfolder").

http://www.wrox.com/WileyCDA/Section/id-292158.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dmveAuthor Commented:
Perfect, thanks. A bit hard to understand the usage I think...  But it works and thats the main thing :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.