Windows Server 2003 server could not download.exe file solution

  • 2020-05-10 23:13:49
  • OfStack

Today, I set up a website server of Windows Server 2003. I found that I could not download the.exe file in the website after opening the webpage.

The solution is as simple as setting the execution permission in the website properties to "pure script" in IIS.

Attachment: the Windows Server 2003 server could not download the file solution with the EXE suffix

In the actual operation, only the second step was carried out and it was successful.

That is, open iis manager, right-click the website - click properties - home directory, set the execution permission to "no" or "pure script", that is, cancel the "executable file ".

Detailed troubleshooting steps:

1. Set MIME so that IIS supports more file types. If MIME already has.exe, this step can be skipped.

Open IIS, select the server, right click, property has MIME type
Add the extension:.exe
Type: application/octet - stream

(common MIME type
Hypertext markup language text.html,.html text/html
Plain text.txt text/plain
RTF text.rtf application/rtf
GIF graphics.gif image/gif
JPEG graphics.ipeg,.jpg image/jpeg
au sound file.au audio/basic
mid MIDI music files,. midi audio/midi, audio/x - midi
RealAudio music files.ra,.ram audio/ x-pn-realaudio
MPEG documents.mpg,.mpeg video/mpeg
AVI file.avi video/ x-msvideo
GZIP file.gz application/ x-gzip
TAR documents.tar application/ x-tar)

2. If the previous step does not solve the problem, you can set the access rights of the home directory of the website under 1.

Open the iis manager, right-click the website - click properties - home directory, set the execution permission to "none" or "pure script", that is, cancel the "executable file ".

3. If the previous step still does not solve the problem," all unknown cgi extensions "and" all unknown isapi extensions "in "web service extensions" in iis manager can be disabled, and only "asp" and "asp.net" can be retained.

After the above 3 steps, the problem should be solved, allowing the download of other file types and methods like this 1.


Related articles: