Error:
{System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.
at System.Net.WebClient.UploadFile(Uri address, String method, String fileName)
at System.Net.WebClient.UploadFile(Uri address, String fileName)
at System.Net.WebClient.UploadFile(String address, String fileName)
at Test.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\WebSite1\Test.aspx.cs:line 35}
Windows application, automated process will run on local user system...
trying to upload a file to website folder. website address: http://1.1.1.1/test/files
System.Net.WebClient wc = new WebClient();
wc.UploadFile(website address, "c:/1.pdf");
Getting error from above line.. Am doing something wrong??
I dont want to use ftp or share folder logic..
is there any other way to upload the files to server??
...
Go to the complete details ...