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 / C++ / MFC
  4. URLDownloadToFile stopped working on Windows 10

URLDownloadToFile stopped working on Windows 10

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiosecurityhelplounge
3 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.
  • D Offline
    D Offline
    DavidBaird
    wrote on last edited by
    #1

    My app was running fine with Windows 7 & 8.1 using URLDownloadTofile(NULL,sUrl,SFile,0,NULL). With the upgrade to Windows 10 it has stopped working. I've made sure my app has security settings to allow it through the firewall (and this hasn't changed) but now the request to download fails. Also the Visual Studio 2008 Document explorer now just comes up with "Unable to download " which makes me suspect it's a more general problem that just my app. I can't find any security settings that should be blocking my app. If any one could shed some light on my problem I'd be grateful. I've trawled around the web for a day with no useful results. Thanks, David.

    U 1 Reply Last reply
    0
    • D DavidBaird

      My app was running fine with Windows 7 & 8.1 using URLDownloadTofile(NULL,sUrl,SFile,0,NULL). With the upgrade to Windows 10 it has stopped working. I've made sure my app has security settings to allow it through the firewall (and this hasn't changed) but now the request to download fails. Also the Visual Studio 2008 Document explorer now just comes up with "Unable to download " which makes me suspect it's a more general problem that just my app. I can't find any security settings that should be blocking my app. If any one could shed some light on my problem I'd be grateful. I've trawled around the web for a day with no useful results. Thanks, David.

      U Offline
      U Offline
      Ujesh Mohanan
      wrote on last edited by
      #2

      Have you tried running Visual Studio as administrator? What is the error that you are getting?

      D 1 Reply Last reply
      0
      • U Ujesh Mohanan

        Have you tried running Visual Studio as administrator? What is the error that you are getting?

        D Offline
        D Offline
        DavidBaird
        wrote on last edited by
        #3

        Thanks it turned out the problem was that the directory that the Temporary Internet files were stored in no longer existed after the update to Windows 10. Trying to change this under the Control Panel application for Internet settings failed to change the directory as the one that it was trying to move the files from did not exist. The only way to correct the problem was to manually edit the registry key as explained here: https://msdn.microsoft.com/en-us/library/ms940828(v=winembedded.5).aspx

        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