Serious help uploading a file using C# in Asp.Net 3.5 higher
-
Hi, I am so confused with the research I have done. Please help me upload a file, a csv file from a certain location to a remote http server? I cannot use the file upload control. I have tried 1. WebClient class - using the simple UploadFile method. It did not work. Kept coming back with 404 or 405 error. 2. Tried REST call with no luck. Any simple method to transfer a file from one location to remote http server. Thank you and much appreciated!
-
Hi, I am so confused with the research I have done. Please help me upload a file, a csv file from a certain location to a remote http server? I cannot use the file upload control. I have tried 1. WebClient class - using the simple UploadFile method. It did not work. Kept coming back with 404 or 405 error. 2. Tried REST call with no luck. Any simple method to transfer a file from one location to remote http server. Thank you and much appreciated!
This sounds like a permissions issue. 405 indicates you aren't allowed access, "Resource not allowed".
-
Hi, I am so confused with the research I have done. Please help me upload a file, a csv file from a certain location to a remote http server? I cannot use the file upload control. I have tried 1. WebClient class - using the simple UploadFile method. It did not work. Kept coming back with 404 or 405 error. 2. Tried REST call with no luck. Any simple method to transfer a file from one location to remote http server. Thank you and much appreciated!
Please don't bump your question, it is considered rude. If people know what the problem is they will help.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
Hi, I am so confused with the research I have done. Please help me upload a file, a csv file from a certain location to a remote http server? I cannot use the file upload control. I have tried 1. WebClient class - using the simple UploadFile method. It did not work. Kept coming back with 404 or 405 error. 2. Tried REST call with no luck. Any simple method to transfer a file from one location to remote http server. Thank you and much appreciated!
vanikanc wrote:
I cannot use the file upload control.
Why? Technical limitation, or specs?
vanikanc wrote:
Please help me upload a file, a csv file from a certain location to a remote http server?
Is there an ASP.NET (or PHP) page on the server to which to upload a file? If no, you'll need FTP.
vanikanc wrote:
Any simple method to transfer a file from one location to remote http server.
FTP it is. Install a server-app, and you can upload a file by executing a DOS-command. Hard to beat that in terms of simplicity, since it can be tested without writing any code.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
vanikanc wrote:
I cannot use the file upload control.
Why? Technical limitation, or specs?
vanikanc wrote:
Please help me upload a file, a csv file from a certain location to a remote http server?
Is there an ASP.NET (or PHP) page on the server to which to upload a file? If no, you'll need FTP.
vanikanc wrote:
Any simple method to transfer a file from one location to remote http server.
FTP it is. Install a server-app, and you can upload a file by executing a DOS-command. Hard to beat that in terms of simplicity, since it can be tested without writing any code.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]