I have a WinForms 1.1 application and I want to post some files on the
webserver, using WebClient.Uploa dFile() method.
I try the solution from MSDN site -
http://msdn.microsoft.com/library/de...FileTopic1.asp.
I creat a ReciveFile.aspx webpage with the content dercribed on this site
and I use send the file with this code:
WebClient web = new WebClient();
web.UploadFile( "http://localhost/ReciveFile.aspx ", "POST", "c:\\picture.jp g")
The execution of UploadFile() returned with Error 500 - Internal Server
Error. The folder in which will send the files is with Write privileges in
IIS.
Please tell me how is using UploadFile() method and if the
ReciveFile.aspx webpage has some bugs.
Thank you!
webserver, using WebClient.Uploa dFile() method.
I try the solution from MSDN site -
http://msdn.microsoft.com/library/de...FileTopic1.asp.
I creat a ReciveFile.aspx webpage with the content dercribed on this site
and I use send the file with this code:
WebClient web = new WebClient();
web.UploadFile( "http://localhost/ReciveFile.aspx ", "POST", "c:\\picture.jp g")
The execution of UploadFile() returned with Error 500 - Internal Server
Error. The folder in which will send the files is with Write privileges in
IIS.
Please tell me how is using UploadFile() method and if the
ReciveFile.aspx webpage has some bugs.
Thank you!