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. Visual Basic
  4. problem uploading file

problem uploading file

Scheduled Pinned Locked Moved Visual Basic
helpsysadmincsharpapache
5 Posts 2 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.
  • E Offline
    E Offline
    eyes2007
    wrote on last edited by
    #1

    hello to all of you out their i m using vb.net 2005, .net framework version 2.0. and trying to uploading file to my local server with my application. the problem comes when i try to upload a file to the server, with the code My.Computer.Network.UploadFile("C:\Documents and Settings\Administrator\Desktop\ashish.txt", "http://192.168.0.3/isol/ashish.txt", "", "", True, 1000, FileIO.UICancelOption.ThrowException) it throw an error 404 not found when i place a file having same name on the server, the program cannot throw any error but the file cannot be uploaded. if i replace the code with this one, the code works fine and it places the file on the located computer. My.Computer.Network.UploadFile("C:\Documents and Settings\Administrator\Desktop\ashish.txt", "file://///192.168.0.3/c/ashish.txt", "", "", True, 1000, FileIO.UICancelOption.ThrowException) but this is not something like client/server this is simple network, i need to check it with online website. the server computer contain apache 2.0.59. i think the problem is with the configuration of apache. i m working on it. if some has any idea about that please let me know. any kind of help is highly appreciated. thanks in advance

    help everyone

    G 1 Reply Last reply
    0
    • E eyes2007

      hello to all of you out their i m using vb.net 2005, .net framework version 2.0. and trying to uploading file to my local server with my application. the problem comes when i try to upload a file to the server, with the code My.Computer.Network.UploadFile("C:\Documents and Settings\Administrator\Desktop\ashish.txt", "http://192.168.0.3/isol/ashish.txt", "", "", True, 1000, FileIO.UICancelOption.ThrowException) it throw an error 404 not found when i place a file having same name on the server, the program cannot throw any error but the file cannot be uploaded. if i replace the code with this one, the code works fine and it places the file on the located computer. My.Computer.Network.UploadFile("C:\Documents and Settings\Administrator\Desktop\ashish.txt", "file://///192.168.0.3/c/ashish.txt", "", "", True, 1000, FileIO.UICancelOption.ThrowException) but this is not something like client/server this is simple network, i need to check it with online website. the server computer contain apache 2.0.59. i think the problem is with the configuration of apache. i m working on it. if some has any idea about that please let me know. any kind of help is highly appreciated. thanks in advance

      help everyone

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      If you want to upload a file using http, you need to post the file to a web page that can recieve the file. If you want to uplad a file using ftp, use the ftp protocol in the url instead of the http protocol.

      --- single minded; short sighted; long gone;

      E 1 Reply Last reply
      0
      • G Guffa

        If you want to upload a file using http, you need to post the file to a web page that can recieve the file. If you want to uplad a file using ftp, use the ftp protocol in the url instead of the http protocol.

        --- single minded; short sighted; long gone;

        E Offline
        E Offline
        eyes2007
        wrote on last edited by
        #3

        i simply want to paste the file in the folder named upload on server is it necessary that their must be a page to get my file on server. can u tell me how can i rename files on server (this is an alternate of my application that i can upload files from third party tools and then rename the file as needed on server) if i simply replace the protocol from http from ftp it gives me the error an exception occured during a webclient request. the requested ftp command is not supported when using http proxy. have any idea then please let me know thanks

        help everyone

        G 1 Reply Last reply
        0
        • E eyes2007

          i simply want to paste the file in the folder named upload on server is it necessary that their must be a page to get my file on server. can u tell me how can i rename files on server (this is an alternate of my application that i can upload files from third party tools and then rename the file as needed on server) if i simply replace the protocol from http from ftp it gives me the error an exception occured during a webclient request. the requested ftp command is not supported when using http proxy. have any idea then please let me know thanks

          help everyone

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          eyes2007 wrote:

          i simply want to paste the file in the folder named upload on server is it necessary that their must be a page to get my file on server.

          Yes, if you want to use the http protocol. You can't save a file using the http protocol, you can only send a request to the server that contains the file data, and the page on the server can recieve the file data and save it as a file on the server.

          eyes2007 wrote:

          f i simply replace the protocol from http from ftp it gives me the error an exception occured during a webclient request. the requested ftp command is not supported when using http proxy.

          You can't upload files to ftp when using a proxy. Try turning off the proxy, as suggested here: http://www.vbforums.com/showthread.php?t=384411[^]

          --- single minded; short sighted; long gone;

          E 1 Reply Last reply
          0
          • G Guffa

            eyes2007 wrote:

            i simply want to paste the file in the folder named upload on server is it necessary that their must be a page to get my file on server.

            Yes, if you want to use the http protocol. You can't save a file using the http protocol, you can only send a request to the server that contains the file data, and the page on the server can recieve the file data and save it as a file on the server.

            eyes2007 wrote:

            f i simply replace the protocol from http from ftp it gives me the error an exception occured during a webclient request. the requested ftp command is not supported when using http proxy.

            You can't upload files to ftp when using a proxy. Try turning off the proxy, as suggested here: http://www.vbforums.com/showthread.php?t=384411[^]

            --- single minded; short sighted; long gone;

            E Offline
            E Offline
            eyes2007
            wrote on last edited by
            #5

            can you please provide me some more documentation or links or any thing else thanks

            help everyone

            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