Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error downloading resource over https when IE settings in place #121

Open
sachatterjee-atlas opened this issue Feb 16, 2018 · 1 comment

Comments

@sachatterjee-atlas
Copy link

sachatterjee-atlas commented Feb 16, 2018

I am trying to download an exe over https in my own domain. I am using the download dialog component to achieve this.
Getting an error that the specified download has failed. Error line from the log file is

2018-02-16 18:14:49 *** Download ERROR: 0x800c0008 - Error downloading "https://hello.world.com/Resources/Dotnet4.6AllOS.exe" to "C:\Users\SACHAT~1\AppData\Local\Temp\Dotnet4.6AllOS.exe.tmp": The download of the specified resource has failed.

Searching through forums found that the culprit is an IE Setting. In Internet Explorer, in Internet Options, under Advanced tab, under Security section if the setting "Do not save encrypted pages to disk" is checked then the download fails.
However if I hit the same URL in the browser, the download happens fine.
I am trying to distribute pieces of software through the dotnetinstaller bootstrapper and there can be can be scenarios when the user workstation has this setting.

Any way this can be fixed?

Posted same to Google Group Topic

@icnocop
Copy link
Collaborator

icnocop commented Feb 17, 2018

Hi.

This is an issue with dotNetInstaller using URLDownloadToFile to download files, which uses IE's settings.

One work-around is to just use HTTP.

Is the server returning "Pragma: no-cache" in the header?

If so, do you have the ability to make changes to the server?
As another work-around, see the following links:
IIS ASP.NET MVC: https://juristr.com/blog/2012/07/strange-error-when-downloading-file-in/
Apache Tomcat: https://www.mail-archive.com/[email protected]/msg151294.html

I think to solve this issue, dotNetInstaller would have to use something else other than URLDownloadToFile, like CInternetSession or CHTTPClient.

I have not tested any of these possible work-arounds or solutions as when I encountered this issue, I was able to use HTTP instead; the data retrieved when downloading the file didn't need to be encrypted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants