IIS and Web Servers
How to Enable HTTP download in IIS10
Gravatar is a globally recognized avatar based on your email address. How to Enable HTTP download in IIS10
  Simon White
  All
  Jan 19, 2018 @ 01:26pm

Hi

I am using WebConnect for a number of web sites and everything is working just fine. However, I cannot get HTTP downloads to work as I always get error 500. I am using a url of the form mysite.com/updates/my.zip where the paths are correct and the file exists. This use to work with out issue on Windows Server 2003 but on Windows Server 2016 and I cannot get it to work and cannot seem to find the answer.

Does anyone now how to enable this feature or where I might find the appropriate documenation?

Thanks, Simon

Gravatar is a globally recognized avatar based on your email address. re: How to Enable HTTP download in IIS10
  Rick Strahl
  Simon White
  Jan 20, 2018 @ 12:16am

Make sure you have the StaticFileModule enabled in the site and/or virtual. Also you have to have read permissions on the folder where the file lives on disk.

Static file access should just work - there's generally nothing to configure to make it happen.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: How to Enable HTTP download in IIS10
  Simon White
  Simon White
  Jan 20, 2018 @ 07:36am

Hi Rick

I believe I have those items configured correctly as shown in the image but I still have error 500.

Thanks Simon

Gravatar is a globally recognized avatar based on your email address. re: How to Enable HTTP download in IIS10
  Rick Strahl
  Simon White
  Jan 21, 2018 @ 01:19pm

I don't know without actually looking at the server.

Static content generally isn't a problem unless you have additional security configured via the security filtering in IIS. By default though I'm pretty sure most static content including Zip files is open to serve by default. I've certainly never set anything up on my Win2016 server.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: How to Enable HTTP download in IIS10
  Rick Strahl
  Simon White
  Jan 31, 2018 @ 03:27pm

Check and make sure the Application Pool you are using is not Application Pool Identity for it's Identity, but a real account that has file access permissions to read the files out of the folder you're downloading from. I tend to use NETWORK SERVICE which has no rights anywhere except what you add explicitly, but you can start with SYSTEM then work your way down from there.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: How to Enable HTTP download in IIS10
  Simon White
  Rick Strahl
  Feb 1, 2018 @ 06:55am

Hi Rick

I found the problem. The downloads worked from other folders and security rights were the same. When I checked the handlers on the folders I discovered there was a corrupt web config file in the folder that was causing the problem. I simply deleted the web config file and then everything began to work correctly.

Thanks for your help. Simon

Gravatar is a globally recognized avatar based on your email address. re: How to Enable HTTP download in IIS10
  Rick Strahl
  Simon White
  Feb 1, 2018 @ 01:56pm

That folder wasn't a virtual directory so it shouldn't have a web.config anyway (unless it's to set specific permissions to block access).

+++ Rick ---

© 1996-2024