Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Serious help uploading a file using C# in Asp.Net 3.5 higher

Serious help uploading a file using C# in Asp.Net 3.5 higher

Scheduled Pinned Locked Moved C#
csharphelpasp-netsysadminjson
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vanikanc
    wrote on last edited by
    #1

    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!

    B K L 3 Replies Last reply
    0
    • V vanikanc

      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!

      B Offline
      B Offline
      Bill Warner
      wrote on last edited by
      #2

      This sounds like a permissions issue. 405 indicates you aren't allowed access, "Resource not allowed".

      1 Reply Last reply
      0
      • V vanikanc

        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!

        K Offline
        K Offline
        Keith Barrow
        wrote on last edited by
        #3

        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[^]

        1 Reply Last reply
        0
        • V vanikanc

          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!

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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[^]

          V 1 Reply Last reply
          0
          • L Lost User

            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[^]

            V Offline
            V Offline
            vanikanc
            wrote on last edited by
            #5

            I do apologise for "bumping" this question. Thank you - I will be using a bat file, called from process class to upload this file to the required server! Thanks again!!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups