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
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 ---
Hi Rick
I believe I have those items configured correctly as shown in the image but I still have error 500.
Thanks Simon
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 ---
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 ---
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