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. Um, something isn't quite right...

Um, something isn't quite right...

Scheduled Pinned Locked Moved C#
helphtmldatabasequestion
7 Posts 3 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.
  • J Offline
    J Offline
    jas0n23
    wrote on last edited by
    #1

    Hello, I've created a WebClient which downloads the index.html file from my webserver and it has been working for the past 3 weeks, but I've had to rewrite my code due to a virus making me format my computer. Here's my code:

    WebClient DownloadData = new WebClient();
    DownloadData.DownloadFile("myURL", "LocalDestinationPath");

    I am using the exact same code as I used before. I don't understand why it doesn't work this time. I don't get any error messages, or debugging errors, it just doesn't work. I've tried

    DownloadFile

    ,

    DownloadData

    ,

    DownloadStream

    and none of them work :'( Can anybody please help shed some light on the matter? Thanks in advance. :-) Regards, Jay.

    foreach( inch on Jason ) { Girlfriend.IsHappier(); }

    S 1 Reply Last reply
    0
    • J jas0n23

      Hello, I've created a WebClient which downloads the index.html file from my webserver and it has been working for the past 3 weeks, but I've had to rewrite my code due to a virus making me format my computer. Here's my code:

      WebClient DownloadData = new WebClient();
      DownloadData.DownloadFile("myURL", "LocalDestinationPath");

      I am using the exact same code as I used before. I don't understand why it doesn't work this time. I don't get any error messages, or debugging errors, it just doesn't work. I've tried

      DownloadFile

      ,

      DownloadData

      ,

      DownloadStream

      and none of them work :'( Can anybody please help shed some light on the matter? Thanks in advance. :-) Regards, Jay.

      foreach( inch on Jason ) { Girlfriend.IsHappier(); }

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Do you get an exception? How do you know it isn't working?

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      J 2 Replies Last reply
      0
      • S SeMartens

        Do you get an exception? How do you know it isn't working?

        It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

        J Offline
        J Offline
        jas0n23
        wrote on last edited by
        #3

        Thanks for the reply sebastion, I know it isn't working because the index.html file is not being downloaded into the destination path that I specified. Which is: C:\index.html regards, jason.

        foreach( inch on Jason ) { Girlfriend.IsHappier(); }

        L 1 Reply Last reply
        0
        • S SeMartens

          Do you get an exception? How do you know it isn't working?

          It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

          J Offline
          J Offline
          jas0n23
          wrote on last edited by
          #4

          Edit. Forgot to answer your first question. lol. No, I'm not getting any exceptions either. It's so weird.

          foreach( inch on Jason ) { Girlfriend.IsHappier(); }

          1 Reply Last reply
          0
          • J jas0n23

            Thanks for the reply sebastion, I know it isn't working because the index.html file is not being downloaded into the destination path that I specified. Which is: C:\index.html regards, jason.

            foreach( inch on Jason ) { Girlfriend.IsHappier(); }

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

            Is it "C:\\index.html" or "C:\index.html"?

            I are troll :)

            J 1 Reply Last reply
            0
            • L Lost User

              Is it "C:\\index.html" or "C:\index.html"?

              I are troll :)

              J Offline
              J Offline
              jas0n23
              wrote on last edited by
              #6

              :-) It is: C:\\index.html

              foreach( inch on Jason ) { Girlfriend.IsHappier(); }

              L 1 Reply Last reply
              0
              • J jas0n23

                :-) It is: C:\\index.html

                foreach( inch on Jason ) { Girlfriend.IsHappier(); }

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

                Most of the other things that I can think of would throw some kind of exception :doh: Other folders got the same problem?

                I are troll :)

                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