IIS – Cannot Download File From Website (With Extension .xyz)

KB ID 0001223 

Problem

I first saw this problem a few months ago, when I wasted to download some .bin and .pkg files from a web server running IIS, into a Cisco firewall. Then again this week I needed to get a large .iso file into a clients network so I put it on a publicly accessible web server running IIS, and had the problem again.

 

Solution

On the IIS server, open administrative tools > Internet Information Services (IIS) Manager > Drill down to the default website > Locate the ‘MIME Types‘ and open them.

You will probably find there is not one for the file extension you cannot download (in this case .iso) > Add one in > Set the MIME type to;

application/octet-stream

 

Then re-try your download.

Related Articles, References, Credits, or External Links

NA

Windows 10 – Installing IIS

KB ID 0001158 

Problem

I needed to get a web server up and running today, so I could upload some files into a firewall via http. I have a copy of Windows 10 running on my mac in VMware fusion, so that’s what I thought I would use.

Solution

Open a command window and run appwiz.cpl > Turn Windows features on or off > Internet Information Services > OK > Follow the instructions.

Now to test,  open a browser window and navigate to http://localhost. You should see the IIS welcome page.

Windows IIS Add A File Extension For ‘Download’

I needed to download a file with a .SPA exntention, this didn’t work, because I needed to add that file extension for download. Open IIS Management console > Expand {server-name} > Sites  > Default Web Site > MIME Types > Add > Type in the file extension > Set the MIME Type to application/octet-stream  > OK.

Normally the files I needs are in .BIN format, but this file extension is already included by default.

Related Articles, References, Credits, or External Links

NA

Your Current Security Settings Do Not Allow This File To Be Downloaded

KB ID 0001089 

Problem

After spinning up a new Windows 2012 R2 Server this week, I needed to get some hot-fixes and updates, and I was greeted by this annoying IE ‘Security Alert’.

I appreciate that normally you would not be downloading files on a server, but a lot of us do need to download and install software and unless you have Internet access elsewhere you will be stuck.

Solution

1. Chances are you will be on a URL that is in the ‘Internet Zone’, (though that’s not always the case), right click on any area of the web page you are trying to download from and select properties > and check the Zone you are in it will say Internet, Local Intranet, Trusted or Restricted Sites. Make a note!

Note: If it says ‘Restricted Sites’ make sure you are trying to download something legitimate and not something potentially nasty!

2. From within IE > Open the tools Menu (the little cog icon) > Internet Options > Select the appropriate Zone, (you noted earlier) > Custom Level.

3. Scroll all the way down to ‘Downloads’ > File Downloads > Enable > OK.

4. Restart the browser and try again.

Related Articles, References, Credits, or External Links

NA